public ActionResult GetFilter(int page, int limit, DateTime timeStart, DateTime timeEnd, string barcode, string recipes, string worker) { List <object> list = new List <object>(); string[] NameFilter = work.GetFilterName(page, limit, timeStart, timeEnd, barcode, recipes, worker); foreach (string item in NameFilter) { list.Add(new { ProductModel = item, No = work.GetCount(item, timeStart.ToString(), timeEnd.ToString()) }); } return(Content(new LayUIResult { code = 0, msg = "success", data = list }.ToJson())); }