public void Create(User user) { if (userRepository.Exists (user.Email)) { throw new UserAlreadyExistsException (); } userRepository.Save (user); }
public bool Validate(User user) { throw new NotImplementedException (); }
public bool Validate(User user) { return userRepository.Exists (user); }