Beispiel #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));
        }
Beispiel #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));
        }