public ActionResult Create(IntructorCreateNewModel model) { try { int id = InstructorRepository.InsertInstructor(model.Instructor); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }