예제 #1
0
 public ActionResult Edit(Ward collection)
 {
     try
     {
         // TODO: Add update logic here
         _wardService.UpdateWard(collection);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
예제 #2
0
 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();
     // }
 }
예제 #3
0
 public void UpdateWard(Ward ward)
 {
     _wards.Update(ward);
     _uow.Save();
 }
예제 #4
0
 public void CreateWard(Ward ward)
 {
     _wards.Add(ward);
     _uow.Save();
 }