public JsonResult GetConvertedClaimCount()
        {
            Home home = new Home();

            try
            {
                home.GetConvertedCount();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return Json(home.ConvertedClaimsCount.ToArray(), JsonRequestBehavior.AllowGet);
        }
        public JsonResult GetOldestOutstandingbyUserCount()
        {
            Home home = new Home();

            List<string> javascriptList = new List<string>();

            try
            {
                home.GetOldestOutstandingbyUserCount();
                var serialize = new System.Web.Script.Serialization.JavaScriptSerializer();

                foreach (Dictionary<string, string> dict in home.oldestPriorityTasksCount)
                {
                    javascriptList.Add(serialize.Serialize(dict));
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return Json(javascriptList.ToArray(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult List()
        {
            Home home = new Home();

            try
            {
                //home.GetCompletedAppointments();
                home.GetUpdatedAppointments();
                home.GetOutstandingAppointments();
                //home.GetSnoozedAppointments();
                //home.GetCompletedAppointmentsCount();
                home.GetUpdatedAppointmentsCount();
                home.GetOutstandingAppointmentsCount();
                //home.GetSnoozedAppointmentsCount();
                home.GetConvertedClaims();
                home.GetSettledClaims();
                home.GetOustandingAppointmentsbyPriority();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return PartialView(home);
        }
        public JsonResult GetUpdatedAppointmentsCount()
        {
            Home home = new Home();

            try
            {
                home.GetUpdatedAppointmentsCount();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return Json(home.UpdatedAppointmentsCount.ToArray(), JsonRequestBehavior.AllowGet);
        }