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