コード例 #1
0
        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));
        }
コード例 #2
0
        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));
            }
        }