示例#1
0
 public Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => Task.FromResult(new Response()
 {
     Mentees = _repository.Query <Mentee>().Select(x => MenteeDto.FromMentee(x)).ToList()
 });
 public Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => Task.FromResult(new Response()
 {
     Mentee = MenteeDto.FromMentee(_repository.Query <Mentee>().Single(x => x.MenteeId == request.MenteeId))
 });