Exemple #1
0
        public void MainCreate(MAINMENUS menu)
        {
            SeoLink link  = new SeoLink();
            string  slink = link.Seo(menu.Main_Title);

            menu.Main_Link = slink;
            model.MAINMENUS.Add(menu);
            model.SaveChanges();
        }
        public void CreateSubMenu(SUBMENUS smenu)
        {
            SeoLink seoLink = new SeoLink();
            string  slink   = seoLink.Seo(smenu.Sub_Title);

            smenu.Sub_Link = slink;
            model.SUBMENUS.Add(smenu);
            Save();
        }