コード例 #1
0
        public ActionResult Delete(ShopProduct viewModel)
        {
            if (ModelState.IsValid) {
                _service.Remove(viewModel.ShopProductId);

                return RedirectToAction("Index");
            }

            return View();
        }
コード例 #2
0
 public ShopProductEditModel(ShopProduct entity)
 {
     Product = entity;
 }