Esempio n. 1
0
        [HttpPut("{ProjectManagerId}")]  //Edit ....>   /api/ApiProject/APIEditProjectManager/0147383
        public async Task <IActionResult> APIEditProjectManager(string ProjectManagerId, [FromBody] UserDto ProjectManager)
        {
            if (ModelState.IsValid)
            {
                await ProjectManagerRep.UpdateProjectManager(ProjectManager);

                return(RedirectToAction("APIShowProjectManagers"));
            }
            else
            {
                return(RedirectToAction("APIShowProjectManagers"));
            }
        }
        public async Task <IActionResult> UpdateProjectManagerInf(UserDto ProjectManagerDto)
        {
            if (ModelState.IsValid)
            {
                await ProjectManagerRep.UpdateProjectManager(ProjectManagerDto);

                return(RedirectToAction("ShowProjectManagers"));
            }
            else
            {
                return(View("EditProjectManager"));
            }
        }