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