示例#1
0
 public Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => Task.FromResult(new Response()
 {
     Attendees = _repository.Query <Attendee>().Select(x => AttendeeDto.FromAttendee(x)).ToList()
 });
示例#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))
 });