private ManagementUser Build(ManagementBindingModel managementBindingModel) { return(new ManagementUser { Email = managementBindingModel.Email.Trim(), Name = managementBindingModel.Name.Trim(), Password = managementBindingModel.Password.Trim(), LastName = managementBindingModel.LastName.Trim(), UserName = managementBindingModel.UserName.Trim(), NormalizedUserName = managementBindingModel.UserName.Trim().ToUpper() }); }
public ManagementUser CreateManagementUser(ManagementBindingModel managementBindingModel) { return(_managementUserRepository.InsertOne(Build(managementBindingModel))); }