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