示例#1
0
        private async void ServiceGetdata(int SiteId)
        {
            var service = new CollectUsage();

            //var response = await
            service.GetRemoteData(1);
        }
示例#2
0
        public async Task <ActionResult> Collect()
        {
            try
            {
                var service = new CollectUsage();

                var usageDetails = await service.GetRemoteData(_siteId);

                service.SaveData(usageDetails);

                return(View(usageDetails));
            }
            catch
            {
                return(View());
            }
        }