Esempio n. 1
0
 public Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => Task.FromResult(new Response()
 {
     Attendees = _repository.Query <Attendee>().Select(x => AttendeeDto.FromAttendee(x)).ToList()
 });
Esempio n. 2
0
 public Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => Task.FromResult(new Response()
 {
     Attendee = AttendeeDto.FromAttendee(_repository.Query <Attendee>().Single(x => x.AttendeeId == request.AttendeeId))
 });