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