Esempio n. 1
0
        public async Task <ActionResult> Edit(ProductViewModel productView)
        {
            ProductDTO productDTO = Mapper.Map <ProductDTO>(productView);

            await productService.UpdateAsync(productDTO);

            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
        public async Task <ActionResult> Edit(StockViewModel stockView)
        {
            await stockService.UpdateAsync(Mapper.Map <StockDTO>(stockView));

            return(RedirectToAction("Index"));
        }