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