public IActionResult AddNewProject(string projectName, string projectDescription) { var project = new Project() { IdProject = _projectTable.GetMaxId(), Name = projectName, Description = projectDescription }; _projectTable.NewProject(project, _userTable.GetUserId(HttpContext.User.Identity.Name)); return(RedirectToAction("index", new { idProject = project.IdProject })); }