public void AddNewUser(string login, string password, string email) { User user = new User(); user.Email = email; user.Id = Guid.NewGuid(); user.Login = login; user.Password = password; _db.Insert(user); }
public void Add(User item) => _db.Insert(item);