/// <summary>
        /// Get the details of the DashboardIndicators View in the Model DashboardIndicators such as DashboardIndicatorsList, list of countries etc.
        /// </summary>
        /// <returns>
        /// returns the actionresult in the form of current object of the Model DashboardIndicators to be passed to View DashboardIndicators
        /// </returns>
        public ActionResult Index()
        {
            //Initialize the DashboardIndicators BAL object
            using (var bal = new DashboardIndicatorsBal())
            {
                var corporateId = Helpers.GetSysAdminCorporateID();
                //Get the Entity list
                //var list = bal.GetDashboardIndicatorsListByCorporate(corporateId, Helpers.GetDefaultFacilityId());
                var list = bal.GetDashboardIndicatorsDataList(Helpers.GetSysAdminCorporateID(), 1);
                var orderByExpression = HtmlExtensions.GetOrderByExpression <DashboardIndicatorsCustomModel>("Dashboard");
                var data = HtmlExtensions.OrderByDir(list, "ASC", orderByExpression);

                //Intialize the View Model i.e. DashboardIndicatorsView which is binded to Main View Index.cshtml under DashboardIndicators
                var viewModel = new DashboardIndicatorsView
                {
                    DashboardIndicatorsList    = data,
                    CurrentDashboardIndicators = new DashboardIndicators
                    {
                        IndicatorNumber = bal.GetIndicatorNextNumber(corporateId),
                        OwnerShip       = bal.GetNameByUserId(Helpers.GetLoggedInUserId())
                    }
                };

                //Pass the View Model in ActionResult to View DashboardIndicators
                return(View(viewModel));
            }
        }
        /// <summary>
        /// Binds the indicators active inactive.
        /// </summary>
        /// <param name="showInActive">The show in active.</param>
        /// <returns></returns>
        public ActionResult BindIndicatorsActiveInactive(int showInActive)
        {
            using (var bal = new DashboardIndicatorsBal())
            {
                //Get the Entity list
                //var list = bal.GetDashboardIndicatorsListActiveInActive(Helpers.GetSysAdminCorporateID(), showInActive);
                var list = bal.GetDashboardIndicatorsDataList(Helpers.GetSysAdminCorporateID(), showInActive);

                //Intialize the View Model i.e. DashboardIndicatorsView which is binded to Main View Index.cshtml under DashboardIndicators
                var orderByExpression = HtmlExtensions.GetOrderByExpression <DashboardIndicatorsCustomModel>("Dashboard");
                var data = HtmlExtensions.OrderByDir <DashboardIndicatorsCustomModel>(list, "ASC", orderByExpression);

                //Pass the View Model in ActionResult to View DashboardIndicators
                return(PartialView(PartialViews.DashboardIndicatorsList, data));
            }
        }