Beispiel #1
0
        /// <summary>
        /// 获取所有包厢
        /// </summary>
        /// <returns></returns>
        public ActionResult GetBoxs()
        {
            Response res = new Response();

            res.Data = BoxRepository.GetList();
            return(Json(res, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public ActionResult GetBoxs(BoxSearchDTO req)
        {
            int total = 0;
            var list  = BoxRepository.GetList(out total, req);

            return(Json(new { rows = list, total = total }, JsonRequestBehavior.AllowGet));
        }