public CookieExt GetDashboardLoginCookie(Controller ctrl)
        {
            CookieExt Logincookie = new CookieExt();

            try
            {
                string     CookieName = PremiumDashboard_CookieName;
                HttpCookie cookie     = null;
                if (ctrl.Request.Cookies.AllKeys.Contains(CookieName))
                {
                    cookie = ctrl.Request.Cookies[CookieName];
                }

                if (cookie != null)
                {
                    Logincookie = new CookieExt()
                    {
                        LoginSessionID = ctrl.Request.Cookies[CookieName].Values["LoginSessionID"].ToString(),
                    };
                }
            }
            catch (Exception ex)
            {
                ErrorHandling.HandleException(ex);
            }
            return(Logincookie);
        }
        public CookieExt GetCoach_SysMsg_Cookie(Controller ctrl)
        {
            CookieExt SysMsgCookie = new CookieExt();

            try
            {
                string     CookieName = Coach_SysMsg_CookieName;
                HttpCookie cookie     = null;
                if (ctrl.Request.Cookies.AllKeys.Contains(CookieName))
                {
                    cookie = ctrl.Request.Cookies[CookieName];
                }

                if (cookie != null)
                {
                    SysMsgCookie = new CookieExt()
                    {
                        IsSysMsgAccepted = ctrl.Request.Cookies[CookieName].Values["MsgAccepted"].ToString(),
                    };
                }
            }
            catch (Exception ex)
            {
                ErrorHandling.HandleException(ex);
            }
            return(SysMsgCookie);
        }
        public CookieExt GetMobileNumVerification_Cookie(Controller ctrl)
        {
            CookieExt modelCookie = new CookieExt();

            try
            {
                string     CookieName = MobileNumVerification_CookieName;
                HttpCookie cookie     = null;
                if (ctrl.Request.Cookies.AllKeys.Contains(CookieName))
                {
                    cookie = ctrl.Request.Cookies[CookieName];
                }

                if (cookie != null)
                {
                    //The Cookie value with Mobile Verification Number is stored in Cookie as Encrypted value
                    var Encrypted_EmailAddress = ctrl.Request.Cookies[CookieName].Values["MobVer"].ToString();
                    try
                    {
                        //it always be a number. So, check if it's an Integer value by Decrypting the Cookie value
                        string _EmailAddress;
                        _EmailAddress = SecurityUtils.DecryptCypher(Encrypted_EmailAddress);

                        modelCookie = new CookieExt()
                        {
                            EmailAddress_MobVerification = _EmailAddress
                        };
                    }
                    catch (Exception ex)
                    {
                        ErrorHandling.HandleException(ex);
                    }
                }
            }
            catch (Exception ex)
            {
                ErrorHandling.HandleException(ex);
            }
            //if Cookie found and had valid value then return the value, otherwise it will be Zero i.e. modelCookie.MobileVerficationCode = 0
            return(modelCookie);
        }