public async Task <IActionResult> GridStateChange(IconPostModel model) { var response = await HttpClientAsync.Async <IList <Icon> >(IconRoute.Search, model); IconGridConfiguration configuration = new IconGridConfiguration(response); return(GridConfiguration(configuration)); }
public IActionResult Search(IconPostModel model) { using (this.DbContext) { IQueryable <Icon> query = this.DbContext.Icon.AsNoTracking(); query = query.AddStringContainsFilter(o => o.Code, model.Code); query = query.AddFilter(o => o.IsEnable, model.IsEnable); return(this.StandardResponse(query, model)); } }