protected async Task <SubVariableDataQuery> GetSubVariableDataQuery() { var regionType = await _regionAgrigationTypeRepository.GetTypeAsync(RegionType); return(new SubVariableDataQuery { IsPaging = true, PageSize = PageSize, RegionAgrigationTypeId = regionType.Id }); }
protected async Task <SubVariableDataQuery> GetSubVariableDataQuery(int variableId) { var regionType = await _regionAgrigationTypeRepository.GetTypeAsync(RegionType); return(new SubVariableDataQuery { IsPaging = false, RegionAgrigationTypeId = regionType.Id, VariableId = variableId }); }
private async Task SetCurrentRegionAgrigationTypeId() { var regionAggregationTypeEntity = await _regionAgrigationTypeRepository.GetTypeAsync(_regionAggregationTypeName); CurrentRegionAggregationTypeId = regionAggregationTypeEntity.Id; }