public IActionResult AddEmployeeToProject(int employeeId, int Id) { EmployeeProjectDto employeeProjectDto = new EmployeeProjectDto { EmployeeId = employeeId, ProjectId = Id }; projectRepository.AddEmployeeToProject(employeeProjectDto); projectRepository.Save(); return(RedirectToAction(nameof(Details))); }