public object BindModel(Microsoft.AspNetCore.Mvc.ControllerContext controllerContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) { try { var request = controllerContext.HttpContext.Request; return(new GridSettings { IsSearch = bool.Parse(request.Query["_search"].ToString() ?? "false"), PageIndex = int.Parse(request.Query["page"].ToString() ?? "1"), PageSize = int.Parse(request.Query["rows"].ToString() ?? "10"), SortColumn = request.Query["sidx"].ToString() ?? "", SortOrder = request.Query["sord"].ToString() ?? "asc", Where = Filter.Create(request.Query["filters"].ToString() ?? "") }); } catch { return(null); } }
public Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) { throw new System.NotImplementedException(); }