Esempio n. 1
0
        public async Task <BacklogDTO> UpdateSprint(SprintBacklog sprintBacklog)
        {
            var sprintToUpdate = backlogRepository.GetBacklogById(sprintBacklog.Id);

            sprintToUpdate.StartTime   = sprintBacklog.StartTime;
            sprintToUpdate.EndTime     = sprintBacklog.EndTime;
            sprintToUpdate.Description = sprintBacklog.Description;
            await backlogRepository.UpdateBacklog(sprintToUpdate);

            return(await GetBacklogById(sprintBacklog.Id));
        }
Esempio n. 2
0
        public ActionResult Patch(BacklogDefinition backlog)
        {
            if (backlog == null)
            {
                return(NotFound());
            }

            _backlogRepository.UpdateBacklog(backlog);

            return(NoContent());
        }