public async Task <IActionResult> Details(string chart_guid) { if (String.IsNullOrEmpty(chart_guid)) { return(View(new UnknownChartDto())); } AbstractChartDto chart; chart = await _chartManager.GetByUid(chart_guid); return(View(chart)); }
public async Task <IActionResult> Chart(string chart_guid) { if (String.IsNullOrEmpty(chart_guid)) { return(View(new UnknownChartDto())); } AbstractChartDto modelChart = new ChartDto(); modelChart = await _chartManager.GetByUid(chart_guid); await _chartManager.AddView(modelChart.Id); return(View(modelChart)); }