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)); }
// GET: Menu public ActionResult Index() { _logger.LogInfo("!!! Menus View Opened!!!"); List <Menu> menus = _restaurantManagement.GetMenus(); List <MenuViewModel> vmList = MenuViewModel.MapList(menus); return(View(vmList)); }