public async Task <ActionResult> Edit(ProductViewModel productView) { ProductDTO productDTO = Mapper.Map <ProductDTO>(productView); await productService.UpdateAsync(productDTO); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit(StockViewModel stockView) { await stockService.UpdateAsync(Mapper.Map <StockDTO>(stockView)); return(RedirectToAction("Index")); }