public ActionResult Create(EmployeeModel employee) { if (ModelState.IsValid) { _employeeService.AddEmmployee(_mapper.Map <Employee>(employee)); return(RedirectToAction(nameof(Index))); } return(View(employee)); }