public ActionResult TransCount276(string TotalCount)
        {
            ProcessSummaryModel1 objProcessSummaryModel1 = new ProcessSummaryModel1();
            var a = _entityContext.SP_GetDetails270(TotalCount, "276").ToList();

            if (a.Count > 0)
            {
                for (int i = 0; i < a.Count; i++)
                {
                    objProcessSummaryModel1.TypeofTransaction = a[i].TypeOfTransaction;
                    objProcessSummaryModel1.TotalNumOfReq     = a[i].TotalNumOfReq;
                    objProcessSummaryModel1.Success           = a[i].Success;
                    objProcessSummaryModel1.Error             = a[i].Error;
                    objProcessSummaryModel1.AvgResTime        = a[i].AvgResTime;
                    objProcessSummaryModel1.Date = TotalCount;
                }
            }
            else
            {
                objProcessSummaryModel1.TypeofTransaction = "";
                objProcessSummaryModel1.TotalNumOfReq     = 0;
                objProcessSummaryModel1.Success           = 0;;
                objProcessSummaryModel1.Error             = 0;
                objProcessSummaryModel1.AvgResTime        = 0.ToString();
                objProcessSummaryModel1.Date = TotalCount;
            }
            return(PartialView("EligibilityPartialView276", objProcessSummaryModel1));
        }
        public ActionResult RT276()
        {
            ProcessSummaryModel1 objProcessSummaryModel1 = new ProcessSummaryModel1();
            var a = _entityContext.Eligibility276.OrderByDescending(p => p.ID).ToList();

            for (int i = 0; i < a.Count; i++)
            {
                objProcessSummaryModel1.TypeofTransaction = a[i].TypeofTransaction;
                objProcessSummaryModel1.TotalNumOfReq     = a[i].TotalNumOfReq;
                objProcessSummaryModel1.Success           = a[i].Success;
                objProcessSummaryModel1.Error             = a[i].Error;
                objProcessSummaryModel1.AvgResTime        = a[i].AvgResTime;
            }
            List <DataPoint> dataPoints  = new List <DataPoint>();
            List <DataPoint> dataPoints1 = new List <DataPoint>();
            var data = _entityContext.Eligibility276.OrderByDescending(p => p.ID).ToList();

            for (int i = 0; i < data.Count; i++)
            {
                //float Success1 = (Convert.ToInt32(data[i].Success.Value)) / (Convert.ToInt32(data[i].TotalNumOfReq.Value));
                decimal percentage  = ((decimal)data[i].Success.Value / data[i].TotalNumOfReq.Value) * 100;
                double  Success     = Convert.ToDouble(System.Math.Round(percentage, 2));
                decimal percentage1 = ((decimal)data[i].Error.Value / data[i].TotalNumOfReq.Value) * 100;
                double  Error       = Convert.ToDouble(System.Math.Round(percentage1, 2));
                dataPoints1.Add(new DataPoint("Completed", Success));
                dataPoints1.Add(new DataPoint("Errored", Error));
            }
            dataPoints.Add(new DataPoint("20:22", 206));
            dataPoints.Add(new DataPoint("20:23", 226));
            dataPoints.Add(new DataPoint("20:24", 140));
            dataPoints.Add(new DataPoint("20:25", 166));
            dataPoints.Add(new DataPoint("20:29", 166));
            dataPoints.Add(new DataPoint("20:31", 200));
            dataPoints.Add(new DataPoint("20:34", 169));
            dataPoints.Add(new DataPoint("20:36", 136));
            dataPoints.Add(new DataPoint("20:22", 78));
            dataPoints.Add(new DataPoint("21:22", 200));
            dataPoints.Add(new DataPoint("21:22", 169));
            dataPoints.Add(new DataPoint("21:22", 136));
            dataPoints.Add(new DataPoint("21:22", 78));
            ViewBag.DataPoints  = JsonConvert.SerializeObject(dataPoints);
            ViewBag.DataPoints1 = JsonConvert.SerializeObject(dataPoints1);
            return(View(objProcessSummaryModel1));
        }