public UserModel Post(UserModel source) { PasswordHasher ph = new PasswordHasher(); var passHash = ph.HashPassword(source.Password); var usr = new UserModel() { UserName = source.UserName, FirstName = source.FirstName, LastName = source.LastName, PasswordHash = passHash, IsAdmin = source.IsAdmin }; var createUser = new CreateUser(); createUser.CreateUsers(usr); return(usr); }