Example #1
0
        public async Task <ReportModel> RunReport(DataQueryCriteria criteria, string reportType)
        {
            var msg = await Execute(x => x.PostAsJsonAsync(string.Format("report/run/{0}", reportType.ToLower()), criteria));

            var result = await msg.Content.ReadAsAsync <ReportModel>();

            return(result);
        }
Example #2
0
        public async Task <IEnumerable <MeterData> > GetFileData(DataQueryCriteria criteria)
        {
            var msg = await Execute(x => x.PostAsJsonAsync("imports/data", criteria));

            var result = await msg.Content.ReadAsAsync <IEnumerable <MeterData> >();

            return(result);
        }