Exemple #1
0
        public async Task <IActionResult> Index()
        {
            IndexViewModel indexViewModel = new IndexViewModel()
            {
                MenuItem    = await _menuItemService.FindAllWithIncludesAsync(),
                Category    = await _categoryService.FindAllAsync(),
                SubCategory = await _subCategoryService.FindAllAsync(),
                Coupon      = await _couponService.GetAllCouponsIsActiveAsync()
            };

            return(View(indexViewModel));
        }