示例#1
0
        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());
        }
示例#2
0
        public async Task <int> DeleteSprint(int sprintId)
        {
            var sprint = backlogRepository.GetBacklogById(sprintId);

            return(await backlogRepository.DeleteBacklog(sprint));
        }