public ActionResult Edit(Ward collection) { try { // TODO: Add update logic here _wardService.UpdateWard(collection); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Create(Ward ward) { // try // { // TODO: Add insert logic here ward.CustomerID = (int)Session["CustID"]; _wardService.CreateWard(ward); return RedirectToAction("Index"); //// } // catch // { // return View(); // } }
public void UpdateWard(Ward ward) { _wards.Update(ward); _uow.Save(); }
public void CreateWard(Ward ward) { _wards.Add(ward); _uow.Save(); }