예제 #1
0
        public async Task <IActionResult> GetTeamStatus(Guid teamId)
        {
            TeamStatus teamStatus = await _dashboardLogic.GetTeamStatus(teamId);

            return(Ok(teamStatus));
        }
예제 #2
0
        protected async Task <Overview> BuildOverview(Guid teamId)
        {
            var teamStatus = await _dashboardLogic.GetTeamStatus(teamId);

            return(new Overview
            {
                Challenge01 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge01), Status = teamStatus.Challenge01Status
                },
                Challenge02 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge02), Status = teamStatus.Challenge02Status
                },
                Challenge03 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge03), Status = teamStatus.Challenge03Status
                },
                Challenge04 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge04), Status = teamStatus.Challenge04Status
                },
                Challenge05 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge05), Status = teamStatus.Challenge05Status
                },
                Challenge06 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge06), Status = teamStatus.Challenge06Status
                },
                Challenge07 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge07), Status = teamStatus.Challenge07Status
                },
                Challenge08 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge08), Status = teamStatus.Challenge08Status
                },
                Challenge09 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge09), Status = teamStatus.Challenge09Status
                },
                Challenge10 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge10), Status = teamStatus.Challenge10Status
                },
                Challenge11 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge11), Status = teamStatus.Challenge11Status
                },
                Challenge12 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge12), Status = teamStatus.Challenge12Status
                },
                Challenge13 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge13), Status = teamStatus.Challenge13Status
                },
                Challenge14 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge14), Status = teamStatus.Challenge14Status
                },
                Challenge15 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge15), Status = teamStatus.Challenge15Status
                },
                Challenge16 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge16), Status = teamStatus.Challenge16Status
                },
                Challenge17 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge17), Status = teamStatus.Challenge17Status
                },
                Challenge18 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge18), Status = teamStatus.Challenge18Status
                },
                Challenge19 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge19), Status = teamStatus.Challenge19Status
                },
                Challenge20 = new Progress {
                    Entry = BuildEntry(Identifier.Challenge20), Status = teamStatus.Challenge20Status
                },
            });
        }