// GET: Products public async Task <ActionResult> Index() { IEnumerable <ProductViewModel> listView = Mapper.Map <IEnumerable <ProductViewModel> >(await productService.GetAllAsync()); return(View(listView)); }
// GET: Stocks public async Task <ActionResult> Index() { IEnumerable <StockViewModel> list = Mapper.Map <IEnumerable <StockViewModel> >(await stockService.GetAllAsync()); return(View(list)); }