Chart Viewer now complete
This commit is contained in:
@ -52,13 +52,19 @@ namespace EFB.Controllers
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult ViewCharts(Chart chart){
|
||||
ChartModel charts = HttpContext.Session.GetObject<UserModel>("User").CurrentCharts;
|
||||
if (charts != null)
|
||||
public IActionResult ViewCharts(string chart){
|
||||
UserModel user = HttpContext.Session.GetObject<UserModel>("User");
|
||||
if (user != null)
|
||||
{
|
||||
return View("ViewCharts", charts);
|
||||
ViewChartModel charts = new ViewChartModel(user.CurrentCharts, chart);
|
||||
|
||||
if (charts != null)
|
||||
{
|
||||
return View("ViewCharts", charts);
|
||||
}
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
return RedirectToAction("Index");
|
||||
return RedirectToAction("Index", "Home");
|
||||
}
|
||||
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
|
Reference in New Issue
Block a user