コード例 #1
0
 public async Task <Response> Handle(Request request)
 {
     return(new Response()
     {
         AgileTeamMember = AgileTeamMemberApiModel.FromAgileTeamMember(await _context.AgileTeamMembers.FindAsync(request.Id))
     });
 }
コード例 #2
0
            public async Task <Response> Handle(Request request)
            {
                var agileTeamMembers = await _context.AgileTeamMembers.ToListAsync();

                return(new Response()
                {
                    AgileTeamMembers = agileTeamMembers.Select(x => AgileTeamMemberApiModel.FromAgileTeamMember(x)).ToList()
                });
            }