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