public void CreateUser(string email, string username, string password) { string hash = FormsAuthentication.HashPasswordForStoringInConfigFile(password.Trim(), "md5"); var user = new User() { Name = username, Email = email, Username = username, Password = hash }; service.CreateNewUser(user); }
//C public void CreateNewUser(User user) { repository.Insert(user); }