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