Chart Viewer now complete
This commit is contained in:
28
Models/ViewChartModel.cs
Normal file
28
Models/ViewChartModel.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Html;
|
||||
using Microsoft.AspNetCore.Razor;
|
||||
using Newtonsoft.Json;
|
||||
using EFB.Models.JSON;
|
||||
using Microsoft.AspNetCore;
|
||||
using EFB.Sessions;
|
||||
|
||||
namespace EFB.Models
|
||||
{
|
||||
public class ViewChartModel
|
||||
{
|
||||
public ChartModel Charts { get; set; }
|
||||
public Chart Selected { get; set; }
|
||||
|
||||
public ViewChartModel(ChartModel current, string selected){
|
||||
Charts = current;
|
||||
if (selected != null)
|
||||
{
|
||||
Selected = JsonConvert.DeserializeObject<Chart>(selected);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user