public IActionResult Edit(Project project) { if (ModelState.IsValid) { projectsRepo.Edit(project); return(RedirectToAction(nameof(Details), new { id = project.ProjectId })); } return(View(nameof(Create), project)); }