public ActionResult Delete([FromQuery] Guid?id) { if (!id.HasValue) { return(NotFound()); } var backlog = _backlogRepository.GetBacklog(id.Value); if (backlog == null) { return(NotFound(id.Value)); } _backlogRepository.DeleteBacklog(id.Value); return(NoContent()); }
public async Task <int> DeleteSprint(int sprintId) { var sprint = backlogRepository.GetBacklogById(sprintId); return(await backlogRepository.DeleteBacklog(sprint)); }