Exemplo n.º 1
0
 public int CreateOrUpdateUser(string email, string name, string password, Role role, RestrictedTo restrictionId, int[] groupIDs, bool isVerified = true)
 {
     return CreateOrUpdateUser(new User
                    {
                        Email = email,
                        Name = name,
                        Password = password,
                        Role = (int) role,
                        RestrictionId = (int) restrictionId,
                        GroupIds =  groupIDs.ToList(),
                        IsVerified = isVerified
                    });
 }
Exemplo n.º 2
0
 public int CreateOrUpdateUser(string email, string name, string password, Role role, RestrictedTo restrictionId, int[] groupIDs, bool isVerified = true)
 {
     return(CreateOrUpdateUser(new User
     {
         Email = email,
         Name = name,
         Password = password,
         Role = (int)role,
         RestrictionId = (int)restrictionId,
         GroupIds = groupIDs.ToList(),
         IsVerified = isVerified
     }));
 }