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)); }
public ActionResult Patch(BacklogDefinition backlog) { if (backlog == null) { return(NotFound()); } _backlogRepository.UpdateBacklog(backlog); return(NoContent()); }