public IActionResult Index() { var menuItemsDto = _menuItemManager.GetAllMenuItems(); var viewModel = _viewModelMapper.Map(menuItemsDto); return(View(viewModel)); }
public IActionResult Index() { var menuItemsDto = _menuItemManager.GetAllMenuItems(); var categoriesDto = _categoryManager.GetAllCategories(); var couponsDto = _couponManager.GetAllCoupons(); indexVm.MenuItemsList = _viewModelMapper.Map(menuItemsDto); indexVm.CategoriesList = _viewModelMapper.Map(categoriesDto); indexVm.CouponsList = _viewModelMapper.Map(couponsDto); return(View(indexVm)); }