Example #1
0
 public bool Authorize(UserCredential userCredential)
 {
     if (string.IsNullOrWhiteSpace(userCredential.UserName) ||
         string.IsNullOrWhiteSpace(userCredential.Password))
     {
         return(false);
     }
     return(_authorizationRepository.Authorize(userCredential));
 }