Esempio n. 1
0
        public string[] GetInfoTabInsert(int PortalId, int ContentItemId, int ParentId,
                                         string TabName, string Title, string CssClass, string IconFile, string IconFileLarge, string Description,
                                         string Keywords, bool DisplayTitle, bool IsDeleted, bool IsVisible, bool DisableLink, bool IsSecure,
                                         bool PermanentRedirect, decimal SiteMapPriority, string Url, string TabPath, int RouteId, string PageHeadText,
                                         string Header, string Footer, string StartDate, string EndDate, string CultureCode, string CreatedByUserId)
        {
            string[] array_list = new string[3];
            try
            {
                CommonLibrary.Entities.Tabs.TabController tab_obj = new CommonLibrary.Entities.Tabs.TabController();
                int[] result = tab_obj.Insert(PortalId, ContentItemId, ParentId, TabName, Title, CssClass,
                                              IconFile, IconFileLarge, Description, Keywords, DisplayTitle, IsDeleted, IsVisible,
                                              DisableLink, IsSecure, PermanentRedirect, SiteMapPriority, Url, TabPath, RouteId, PageHeadText, "", "", StartDate, EndDate, CultureCode, CreatedByUserId);

                int i     = result[0];
                int tabid = result[1];
                // result[2] = Keywords;
            }
            catch (IndexOutOfRangeException ex) { ex.ToString(); }

            return(array_list);
        }
        public string[] GetInfoTabInsert(int PortalId, int ContentItemId, int ParentId,
            string TabName, string Title, string CssClass, string IconFile, string IconFileLarge, string Description,
            string Keywords, bool DisplayTitle, bool IsDeleted, bool IsVisible, bool DisableLink, bool IsSecure,
            bool PermanentRedirect, decimal SiteMapPriority, string Url, string TabPath, int RouteId, string PageHeadText,
            string Header, string Footer, string StartDate, string EndDate, string CultureCode, string CreatedByUserId)
        {
            string[] array_list = new string[3];
            try
            {
                CommonLibrary.Entities.Tabs.TabController tab_obj = new CommonLibrary.Entities.Tabs.TabController();
                int[] result = tab_obj.Insert(PortalId, ContentItemId, ParentId, TabName, Title, CssClass,
                    IconFile, IconFileLarge, Description, Keywords, DisplayTitle, IsDeleted, IsVisible,
                    DisableLink, IsSecure, PermanentRedirect, SiteMapPriority, Url, TabPath, RouteId, PageHeadText, "", "", StartDate, EndDate, CultureCode, CreatedByUserId);

                int i = result[0];
                int tabid = result[1];
               // result[2] = Keywords;
            }
            catch (IndexOutOfRangeException ex) { ex.ToString(); }

            return array_list;
        }