コード例 #1
0
        public async Task <ActionResult> Edit(ProductViewModel productView)
        {
            ProductDTO productDTO = Mapper.Map <ProductDTO>(productView);

            await productService.UpdateAsync(productDTO);

            return(RedirectToAction("Index"));
        }
コード例 #2
0
        public async Task <ActionResult> Edit(StockViewModel stockView)
        {
            await stockService.UpdateAsync(Mapper.Map <StockDTO>(stockView));

            return(RedirectToAction("Index"));
        }