Beispiel #1
0
 public async Task <GetAgileTeamByIdResponse> Handle(GetAgileTeamByIdRequest request)
 {
     return(new GetAgileTeamByIdResponse()
     {
         AgileTeam = AgileTeamApiModel.FromAgileTeam(await _context.AgileTeams.FindAsync(request.Id))
     });
 }
Beispiel #2
0
            public async Task <GetAgileTeamsResponse> Handle(GetAgileTeamsRequest request)
            {
                var agileTeams = await _context.AgileTeams.ToListAsync();

                return(new GetAgileTeamsResponse()
                {
                    AgileTeams = agileTeams.Select(x => AgileTeamApiModel.FromAgileTeam(x)).ToList()
                });
            }