Beispiel #1
0
        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();
        }