Ejemplo n.º 1
0
        private BacklogDTO getBacklogById(int backlogId)
        {
            var backlog = backlogRepository.GetBacklogById(backlogId);

            return(new BacklogDTO()
            {
                Id = backlog.Id,
                Description = backlog.Description,
                StartTime = backlog.StartTime,
                EndTime = backlog.EndTime
            });
        }
Ejemplo n.º 2
0
        public async Task <BacklogDTO> GetBacklogById(int backlogId)
        {
            var backlog = backlogRepository.GetBacklogById(backlogId);

            if (backlog == null)
            {
                return(null);
            }

            return(new BacklogDTO()
            {
                Id = backlog.Id,
                Description = backlog.Description,
                StartTime = backlog.StartTime,
                EndTime = backlog.EndTime
            });
        }