public ActionResult Delete(Produs produs) { try { store.Delete(produs.Id); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Edit(Produs produs) { try { store.Update(produs); return RedirectToAction("Index"); } catch { return View(produs); } }
public ActionResult Create(Produs produs) { try { store.Create(produs); return RedirectToAction("Index"); } catch { return View(); } }