public static Models.Client GetClintBYID(string clintid) { ITIAuthorizationServerEntities db = new ITIAuthorizationServerEntities(); return(db.Clients.FirstOrDefault(x => x.ClientId == clintid)); }
public static List <Models.Client> InMemortClient() { ITIAuthorizationServerEntities db = new ITIAuthorizationServerEntities(); return(db.Clients.Where(x => x.Enabled.Value == true).ToList()); }