public JsonResult GetFaceContentProducts(string searchTerm, int pageSize, int pageNum, int filter)//DocTypeId { var Query = _BomDetailService.GetFaceContentProductList(filter, searchTerm); var temp = Query.Skip(pageSize * (pageNum - 1)).Take(pageSize).ToList(); var count = Query.Count(); ComboBoxPagedResult Data = new ComboBoxPagedResult(); Data.Results = temp; Data.Total = count; return(new JsonpResult { Data = Data, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }