public async Task <Response> Handle(Request request) { return(new Response() { AgileTeamMember = AgileTeamMemberApiModel.FromAgileTeamMember(await _context.AgileTeamMembers.FindAsync(request.Id)) }); }
public async Task <Response> Handle(Request request) { var agileTeamMembers = await _context.AgileTeamMembers.ToListAsync(); return(new Response() { AgileTeamMembers = agileTeamMembers.Select(x => AgileTeamMemberApiModel.FromAgileTeamMember(x)).ToList() }); }