Esempio n. 1
0
 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()
     });
 }
Esempio n. 2
0
 public ManagementUser CreateManagementUser(ManagementBindingModel managementBindingModel)
 {
     return(_managementUserRepository.InsertOne(Build(managementBindingModel)));
 }