public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     ServiceProvider = ServiceProviderDto.FromServiceProvider(await _context.ServiceProviders.FindAsync(request.ServiceProviderId))
 };
Ejemplo n.º 2
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     ServiceProviders = await _context.ServiceProviders.Select(x => ServiceProviderDto.FromServiceProvider(x)).ToListAsync()
 };