Ejemplo n.º 1
0
        public static void Run()
        {
            var page = new PageDomain();

            page.SetContainer(new PageDomain.PageContainer {
                Name = "999"
            });
            page.AddItem(new PageDomain.Fp()
            {
                Name = "1"
            });
            page.AddItem(new PageDomain.Menu()
            {
                Name = "1"
            });
            page.AddItem(new PageDomain.Menu()
            {
                Name = "2"
            });
            page.AddItem(new PageDomain.Fp()
            {
                Name = "2"
            });
            page.Save();
        }
Ejemplo n.º 2
0
            public void Save(PageDomain page)
            {
                Console.WriteLine("PageDomainRepo Begin Saving");

                var container = page.GetContainer();

                PageContainerRepo.Save(container);

                var items  = page.GetItems();
                var vItems = GetVItems(items);

                foreach (var vitem in vItems)
                {
                    vitem.Save();
                }
            }