Example #1
0
        public ActionResult BoxList()
        {
            BoxCache boxcache = RemotingHelp.GetModelObject <BoxCache>();

            ViewBag.boxlist = boxcache.GetBoxes();
            return(View());
        }
Example #2
0
        /// <summary>
        /// 获取包厢列表
        /// </summary>
        /// <returns></returns>
        public ActionResult GetBoxes()
        {
            BoxCache boxcache = RemotingHelp.GetModelObject <BoxCache>();

            return(Json(
                       boxcache.GetBoxes(),
                       JsonRequestBehavior.AllowGet
                       ));
        }
Example #3
0
        public List <bsp_boxes> GetBoxes()
        {
            BoxCache bcache = RemotingHelp.GetModelObject <BoxCache>();

            return(bcache.GetBoxes());
        }