Exemplo n.º 1
0
        public ActionResult Delete(ShopProduct viewModel)
        {
            if (ModelState.IsValid) {
                _service.Remove(viewModel.ShopProductId);

                return RedirectToAction("Index");
            }

            return View();
        }
Exemplo n.º 2
0
 public ShopProductEditModel(ShopProduct entity)
 {
     Product = entity;
 }