Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 //C
 public void CreateNewUser(User user)
 {
     repository.Insert(user);
 }