private async void ServiceGetdata(int SiteId) { var service = new CollectUsage(); //var response = await service.GetRemoteData(1); }
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()); } }