public void Register(string login, string password, string city) { var user = new User { Login = login, Password = cryptoManager.GetHash(password), City = city, Role = Role.User }; userRepository.Add(user); userRepository.SaveChanges(); }
public void Register(string login, string password, string city) { var user = new User { Login = login, Password = cryptoManager.GetHash(password), City = city, Role = Role.User }; userRepository.Add(user); userRepository.SaveChanges(); }