Example #1
0
 public IActionResult CreateOrEdit(ProductViewModel viewModelo)
 {
     _productStorer.Store(viewModelo.Id, viewModelo.Name, viewModelo.CategoryId, viewModelo.Price, viewModelo.StockQuantity);
     return(Redirect("~/Product/Index"));
 }
Example #2
0
 public IActionResult CreateOrEdit(ProductViewModel viewModel)
 {
     _productStorer.Store(viewModel.Id, viewModel.Name, viewModel.CategoryId, viewModel.Price, viewModel.StockQuantity);
     return(RedirectToAction("Index"));
 }
Example #3
0
 public IActionResult CreateOrEdit(ProductViewModel dto)
 {
     _productStorer.Store(dto.Id, dto.Name, dto.CategoryId, dto.Price, dto.StockQuantity);
     return(RedirectToAction("Index"));
 }