public string LoadMenuDetails()
        {
            StringBuilder MenuDOM = new StringBuilder();

            if (User.Identity.IsAuthenticated)
            {
                string    TenantId             = TenantDetailsProxy.FetchTenantId();
                DataSet   ModuleDisplayDetails = ModuleDisplayDetailsProxy.FetchModuleDisplayDetails(TenantId, User.Identity.GetUserId());
                DataTable MenuDetailsTable     = ModuleDisplayDetails.Tables[0].DefaultView.ToTable();
                if (MenuDetailsTable != null)
                {
                    foreach (DataRow menuRow in MenuDetailsTable.Rows)
                    {
                        MenuDOM.Append("<li><a href=\"" + menuRow["ModuleURL"] + "\">" + menuRow["ModuleDisplayName"] + "</a>");
                    }
                }
                if (isAdminUser())
                {
                    MenuDOM.Append("<li><a href=\"/Account/Register\" id=\"registerLink\">Register</a></li>");
                }
                if (isValidUser())
                {
                    DataSet cartDetails = CartDetailsProxy.FetchCartDetails(User.Identity.GetUserId(), null, "CartDetail");
                    string  count       = cartDetails.Tables[0].Rows.Count.ToString();
                    MenuDOM.Append("<li><a href=\"#\" id=\"Cart\" onclick=\"ViewCart()\"><i class=\"fa fa-shopping-cart\"></i>&nbsp;Items(" + count + ")</a></li>");
                }
                return(MenuDOM.ToString());
            }
            else
            {
                return(MenuDOM.ToString());
            }
        }
        public string LoadMenuDetails()
        {
            StringBuilder MenuDOM = new StringBuilder();

            if (User.Identity.IsAuthenticated)
            {
                string    TenantId             = TenantDetailsProxy.FetchTenantId();
                DataSet   ModuleDisplayDetails = ModuleDisplayDetailsProxy.FetchModuleDisplayDetails(TenantId, User.Identity.GetUserId());
                DataTable MenuDetailsTable     = ModuleDisplayDetails.Tables[0].DefaultView.ToTable();
                if (MenuDetailsTable != null)
                {
                    foreach (DataRow menuRow in MenuDetailsTable.Rows)
                    {
                        MenuDOM.Append("<li id=\"" + menuRow["ModuleId"] + "\"><a href=\"" + menuRow["ModuleURL"] + "\">" + menuRow["ModuleDisplayName"] + "</a>");
                    }
                }
                return(MenuDOM.ToString());
            }
            else
            {
                return(MenuDOM.ToString());
            }
        }