Ejemplo n.º 1
0
        public IActionResult EditSprint(UpdateSprintDto updateSprintDto)
        {
            var UID = User.FindFirst(ClaimTypes.NameIdentifier).Value;

            //var project = teamLeaderRepository.GetProjects(UID).Where(x => x.Id == updateSprintDto.ProjectId).SingleOrDefault();
            teamLeaderRepository.UpdateSprint(updateSprintDto);
            //return RedirectToAction("ShowSprints");
            return(RedirectToAction("ShowSprints", new RouteValueDictionary(
                                        new { controller = "TeamLeader", action = "ShowSprints", Id = updateSprintDto.ProjectId })));
        }