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