public async Task <IActionResult> Create([Bind("SupervisorId,SupervisorFirstName,SupervisorLastName,SupervisorTitle")] SupervisorCreateViewModel supervisorCreateViewModel) { if (ModelState.IsValid) { var supervisor = _mapper.Map <Supervisor>(supervisorCreateViewModel); await _supervisorRepository.CreateSup(supervisor); return(RedirectToAction(nameof(Index))); } return(View(supervisorCreateViewModel)); }