public async Task <List <IndicatorData> > GetIndicatorHistory(IndicatorDataSearchModel search) { return(await this.dbContext.Set <IndicatorData>() .Where(r => r.Currency == search.Currency && r.Indicator == search.Indicator) .OrderByDescending(r => r.ReleaseDateTime) .ToListAsync()); }
public async Task <IEnumerable <IndicatorData> > GetIndicatorHistory(IndicatorDataSearchModel search) { var recs = await this._repository.GetIndicatorHistory(search); return(recs); }