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 }); }
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 })); }