public ActionResult Edit(Technician technician) { if (ModelState.IsValid) { Facade.GetTechnicianGateway().Update(technician); return RedirectToAction("Index"); } return View(technician); }
public ActionResult Delete(int id, Technician technician) { try { Facade.GetTechnicianGateway().Delete(id); return RedirectToAction("Index"); } catch { return View(); } }