Inheritance: PageViewModel
        public ActionResult GraphsFrame()
        {
            try
            {
                var model = new GraphsViewModel();

                model.GraphsList = GetGraphs(Request.Params["savedGroup"] != null && Request.Params["savedGroup"] != ""
                                                 ? HttpUtility.ParseQueryString(
                                                     Infrastructure.ZocMonGraph.GetSavedGroup(
                                                         int.Parse(Request.Params["savedGroup"])).Query)
                                                 : Request.QueryString);

                return View(model);
            }
            catch (Exception e)
            {
                SimpleLogger.logException(e, to: "*****@*****.**");
                throw;
            }
        }
        public ActionResult ConversionRates()
        {
            try
            {
                GraphsViewModel model = new GraphsViewModel();

                var graph = new ZocMonGraph(Infrastructure.ZocMonGraph.GraphType.ConversionRates);
                graph.SetConversionRatesData();

                model.GraphsList.Add(new GraphViewModel
                                         {
                                             TickFormatter = graph.GetTickFormatter(),
                                             MinYAxis = graph.GetMinYAxis(),
                                             MaxYAxis = graph.GetMaxYAxis(),
                                             MinXAxis = graph.GetMinXAxis(),
                                             MaxXAxis = graph.GetMaxXAxis(),
                                             AlertStatus = graph.GetAlertStatus().ToString(),
                                             LabeledData = graph.GetConversionRatesData(0),
                                             Events = graph.GetMarkerJsString(),
                                             Labels = graph.GetLabelJsString(),
                                             Index = 0,
                                             Width = graph.DisplayWidth,
                                             Height = graph.DisplayHeight,
                                             Title = "Conversion Rates: Last Day",
                                             Ticks = graph.GetTicks(),
                                             SubTitle = "",
                                             TitleSize = graph.DisplayTitleSize,
                                             Type = Infrastructure.ZocMonGraph.GraphType.Line,
                                             IsRatio = false,
                                             DataSources =
                                                 Infrastructure.ZocMonGraph.ListOfStringsToJsArrayString(
                                                     graph.DataSources)
                                         });
                model.GraphsList.Add(new GraphViewModel
                                         {
                                             TickFormatter = graph.GetTickFormatter(),
                                             MinYAxis = graph.GetMinYAxis(),
                                             MaxYAxis = graph.GetMaxYAxis(),
                                             MinXAxis = graph.GetMinXAxis(),
                                             MaxXAxis = graph.GetMaxXAxis(),
                                             AlertStatus = graph.GetAlertStatus().ToString(),
                                             LabeledData = graph.GetConversionRatesData(1),
                                             Events = graph.GetMarkerJsString(),
                                             Labels = graph.GetLabelJsString(),
                                             Index = 1,
                                             Width = graph.DisplayWidth,
                                             Height = graph.DisplayHeight,
                                             Title = "Conversion Rates: Last Week",
                                             Ticks = graph.GetTicks(),
                                             SubTitle = "",
                                             TitleSize = graph.DisplayTitleSize,
                                             Type = Infrastructure.ZocMonGraph.GraphType.Line,
                                             IsRatio = false,
                                             DataSources =
                                                 Infrastructure.ZocMonGraph.ListOfStringsToJsArrayString(
                                                     graph.DataSources)
                                         });
                model.GraphsList.Add(new GraphViewModel
                                         {
                                             TickFormatter = graph.GetTickFormatter(),
                                             MinYAxis = "-100",
                                             MaxYAxis = "100",
                                             MinXAxis = graph.GetMinXAxis(),
                                             MaxXAxis = graph.GetMaxXAxis(),
                                             AlertStatus = graph.GetAlertStatus().ToString(),
                                             LabeledData = graph.GetConversionRatesData(2),
                                             Events = graph.GetMarkerJsString(),
                                             Labels = graph.GetLabelJsString(),
                                             Index = 2,
                                             Width = graph.DisplayWidth,
                                             Height = 400,
                                             Title = "Conversion Rate Ratios",
                                             Ticks = graph.GetTicks(),
                                             SubTitle = "",
                                             TitleSize = graph.DisplayTitleSize,
                                             Type = Infrastructure.ZocMonGraph.GraphType.Ratio,
                                             IsRatio = true,
                                             DataSources =
                                                 Infrastructure.ZocMonGraph.ListOfStringsToJsArrayString(
                                                     graph.DataSources)
                                         });

                return View(model);
            }
            catch (Exception e)
            {
                SimpleLogger.logException(e, to: "*****@*****.**");
                throw;
            }
        }