public void Add(User data) { User account = new User(); account.Username = data.Username; account.Password = BCrypt.Net.BCrypt.HashPassword(data.Password, 10); account.Email = data.Email; account.Active = 1; CRUD.Add(account); //return "User " + account.Username + " has been added."; }
public bool UserCreate(UserDTO userC) { UserCRUD user = new UserCRUD(); return(user.Add(userC)); }