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