Beispiel #1
0
        public void AddNewUser(skUser UserObject)
        {
            string HashedPassword = Authentication.UserAuthentication.HashPassword(UserObject.Password);

            UserObject.Password = HashedPassword;

            UserRepo.AddNewUser(UserObject);
        }
Beispiel #2
0
 public User AddUser(UserDTO newUser)
 {
     return(_repo.AddNewUser(newUser));
 }
Beispiel #3
0
 public void AddUser([FromBody] UserViewModel data)
 {
     UserRepo.AddNewUser(data);
     _log.LogInformation($"The User that is added {JsonConvert.SerializeObject(data)}");
 }