Esempio n. 1
0
        public IActionResult UpdateProject(int idProject, string projectName, string projectDescription)
        {
            var project = new Project()
            {
                IdProject   = idProject,
                Name        = projectName,
                Description = projectDescription
            };

            _projectTable.UpdateProject(project);
            return(RedirectToAction("index", new { idProject = project.IdProject }));
        }