public ActionResult GetWork(int page, int limit, DateTime timeStart, DateTime timeEnd, string barcode, string recipes, string worker) { List <WorkEntity> list = work.GetWork(page, limit, timeStart, timeEnd, barcode, recipes, worker); object TotalCount = work.GetWorkCount(timeStart, timeEnd, barcode, recipes, worker); return(Content(new LayUIResult { code = 0, msg = "success", count = TotalCount, data = list }.ToJson())); }