public async Task <IEnumerable <WeatherForecastEntity> > Execute(ListAllWeatherForecastQuery query) { return(await _readOnlyRespository.Select().ToListAsync()); }
public Task <WeatherForecastEntity> Execute(GetWeatherForecastByIdQuery query) { return(_readOnlyRespository .Select(x => x.Id == query.Id) .SingleOrDefaultAsync()); }