Exemplo n.º 1
0
        // GET: Products
        public async Task <ActionResult> Index()
        {
            IEnumerable <ProductViewModel> listView = Mapper.Map <IEnumerable <ProductViewModel> >(await productService.GetAllAsync());

            return(View(listView));
        }
Exemplo n.º 2
0
        // GET: Stocks
        public async Task <ActionResult> Index()
        {
            IEnumerable <StockViewModel> list = Mapper.Map <IEnumerable <StockViewModel> >(await stockService.GetAllAsync());

            return(View(list));
        }