コード例 #1
0
        public ActionResult GetMenuData(int iDisplayStart, int iDisplayLength)
        {
            List <Menu>          menus  = _restaurantManagement.GetMenus();
            List <MenuViewModel> vmList = MenuViewModel.MapList(menus);

            return(Json(new
            {
                iTotalRecords = vmList.Count(),
                iTotalDisplayRecords = vmList.Count(),
                aaData = vmList
            }, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        // GET: Menu
        public ActionResult Index()
        {
            _logger.LogInfo("!!! Menus View Opened!!!");
            List <Menu>          menus  = _restaurantManagement.GetMenus();
            List <MenuViewModel> vmList = MenuViewModel.MapList(menus);

            return(View(vmList));
        }