Пример #1
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     Profiles = await _context.Profiles
                .Include(x => x.ProfileType)
                .Select(x => ProfileDto.FromProfile(x)).ToListAsync()
 };
Пример #2
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     Profile = ProfileDto.FromProfile(await _context.Profiles.FindAsync(request.ProfileId))
 };