예제 #1
0
        // GET: Shopping
        public async Task <IActionResult> Index()
        {
            var shopping    = _shoppingAppService.Get();
            var shoppingDTO = _mapper.Map <List <ShoppingDTO> >(shopping);

            return(View(shoppingDTO));
        }
예제 #2
0
        public IActionResult Index()
        {
            ViewData["IdShopping"] = new SelectList(_shoppingAppService.Get(), "Id", "Nome");

            return(View());
        }