Beispiel #1
0
 public User Authenticate(string username, string password)
 {
     return(_db.Users
            .Where(UserSpecs.AuthenticateUser(username, password))
            .Where(UserSpecs.IsActive()).FirstOrDefault());
 }