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