public User Register(RegisterUserCommand command)
        {
            var user = new User(command.Email, command.Password, command.IsAdmin);
            user.Register();

            _repository.Register(user);

            if (Commit())
                return user;

            return null;
        }
 public void Register(User user)
 {
     _context.Users.Add(user);
 }