예제 #1
0
        public async Task <IActionResult> Create()
        {
            IEnumerable <MenuCard> cards = await _service.GetMenuCardsAsync();

            ViewBag.MenuCardId = new SelectList(cards, "Id", "Name");
            return(View());
        }
        public async Task <IActionResult> Create()
        {
            IEnumerable <MenuCard> cards = await menuCardsService.GetMenuCardsAsync();

            ViewBag.MenuCards = cards;
            return(View());
        }