public ActionResult Update(int id) { var model = _repository.Get(id); if (model != null) { return(View(model)); } else { return(RedirectToAction("PageNotFound", "Error")); } }
public ActionResult PayOff(int id) { if (_repository.Get(id) != null) { if (_repository.PayOff(id)) { } return(RedirectToAction("Detail", new { id })); } else { return(RedirectToAction("PageNotFound", "Error")); } }