public async Task <Response> Handle(Request request, CancellationToken cancellationToken) => new Response() { Frequencies = await _context.Frequencies .Include(x => x.FrequencyType) .Select(x => FrequencyApiModel.FromFrequency(x)) .ToListAsync() };
public async Task <Response> Handle(Request request, CancellationToken cancellationToken) => new Response() { Frequency = FrequencyApiModel.FromFrequency(await _context.Frequencies.FindAsync(request.FrequencyId)) };