public async Task <MonitoredPageViewModel> GetAsync() { var model = new MonitoredPageViewModel() { Version = TimeController.Version, PublicTime = await GetRemoteTimeInfoAsync(), LocalTime = GetLocalTimeInfo(), FunctionTime = await GetFunctionTimeInfoAsync(), LocalEnvironment = new List <KeyValuePair <string, string> >() // GetEnvironment() }; return(model); }
public async Task <IActionResult> MonitoredPage() { MonitoredPageViewModel model = await(new TimeController()).GetAsync(); return(View(model)); }