private static AccessToken GetTokenBy(int clientId, int userId) { var spec = GetSpecification().Where(o => o.ClientId == clientId && o.UserId == userId); return(repository.FindOne(spec)); }