public async Task <ActionResult> Dashboard(Guid telemetryKey) { Program program = await this.Work.Programs.GetByTelemetryKey(telemetryKey).ConfigureAwait(false); if (program == null) { return(this.RedirectToAction("Index", "Home")); } ProgramStatisticsViewModel model = new ProgramStatisticsViewModel() { TelemetryKey = program.TelemetryKey, ProgramName = program.Name }; return(this.View("Dashboard", model)); }
public async Task <ActionResult> Logs(Guid telemetryKey) { Program program = await this.Work.Programs.SingleOrDefaultAsync(x => x.TelemetryKey == telemetryKey).ConfigureAwait(false); if (program == null) { return(this.RedirectToAction("Index", "Home")); } ProgramStatisticsViewModel model = new ProgramStatisticsViewModel() { TelemetryKey = program.TelemetryKey, ProgramName = program.Name }; return(this.View("Logs", model)); }
public async Task <ActionResult> Index(Guid telemetryKey) { Program program = await this.Work.Programs.GetByTelemetryKey(telemetryKey).ConfigureAwait(false); if (program == null) { return(this.RedirectToAction("Index", "Home")); } ProgramStatisticsViewModel model = new ProgramStatisticsViewModel() { TelemetryKey = program.TelemetryKey, ProgramName = program.Name }; //model.EventNames = (await this.Work.GetEventNames(program).ConfigureAwait(false)); //model.ViewsNames = await this.Work.GetViewNames(program).ConfigureAwait(false); return(this.View("Index", model)); }