/// <summary> /// 获取所有包厢 /// </summary> /// <returns></returns> public ActionResult GetBoxs() { Response res = new Response(); res.Data = BoxRepository.GetList(); return(Json(res, JsonRequestBehavior.AllowGet)); }
public ActionResult GetBoxs(BoxSearchDTO req) { int total = 0; var list = BoxRepository.GetList(out total, req); return(Json(new { rows = list, total = total }, JsonRequestBehavior.AllowGet)); }