Esempio n. 1
0
        public async Task <KanbanViewModel> Construct(string folderId)
        {
            var folder = await _folderService.ById(folderId);

            var statuses = await _taskStatusService.GetByFolder(folderId);

            var orderedStatuses = new List <Status>();

            folder.StatusesOrder.ForEach(x => orderedStatuses.Add(statuses.Where(s => s.Id == x)?.First()));
            var issues = await _issueService.ByFolder(folderId);

            return(new KanbanViewModel(folder, orderedStatuses, issues));
        }