public async Task <Response> Handle(Request request, CancellationToken cancellationToken) => new Response() { Profiles = await _context.Profiles.Select(x => ProfileDto.FromProfile(x)).ToListAsync() };
public async Task <Response> Handle(Request request, CancellationToken cancellationToken) => new Response() { Profile = ProfileDto.FromProfile(await _context.Profiles.FindAsync(request.ProfileId)) };
public async Task <Response> Handle(Request request, CancellationToken cancellationToken) => new Response() { Profile = ProfileDto.FromProfile(await _context.Profiles.SingleAsync(x => x.User.Username == request.Username)) };