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