public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var vm = repo.GetEditClassViewModel(id.Value); if (vm == null) { return(HttpNotFound()); } return(View(vm)); }
public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var vm = repo.GetEditClassViewModel(id.Value); if (vm == null) { return(HttpNotFound()); } return(View(vm)); }