public ActionResult Create(Instructor instructor) { _service.CreateInstructor(instructor); var newInstructor = _service.GetInstructorByName(instructor.FirstName, instructor.LastName).FirstOrDefault(); return(View("Detail", newInstructor.Id)); }
public IEnumerable <Instructor> GetInstructorsByNameSearch(string name) { var instructors = _instructorService.GetInstructorByName(name); return(instructors); }