Exemple #1
0
        public ActionResult Index(FashionNode currentContent)
        {
            var catalogItems = new NodeEntryCombo();

            catalogItems.entries = GetEntries(currentContent.ContentLink);
            catalogItems.nodes   = GetNodes(currentContent.ContentLink);

            return(View(catalogItems));
        }
        public ActionResult Index(NodeContent currentContent)
        {
            var model = new NodeEntryCombo(); // could change the name ...it´s a viewModel

            model.nodes   = GetNodes(currentContent.ContentLink);
            model.entries = GetEntries(currentContent.ContentLink);

            return(View(model));
        }
Exemple #3
0
        public ActionResult Index(MyNode currentPage)
        {
            /* Implementation of action. You can create your own view model class that you pass to the view or
             * you can pass the page type for simpler templates */
            NodeEntryCombo nodeEntryCombo = new NodeEntryCombo();

            nodeEntryCombo.nodes   = GetNodes(currentPage.ContentLink);
            nodeEntryCombo.entries = base.GetEntries(currentPage.ContentLink);
            return(View(nodeEntryCombo));
        }
        public ActionResult Index(FashionNode currentContent)
        {
            var viewModel = new NodeEntryCombo
            {
                nodes   = GetNodes(currentContent.ContentLink),
                entries = GetEntries(currentContent.ContentLink)
            };

            return(View(viewModel));
        }
Exemple #5
0
        public ActionResult Index(FashionNode currentContent)
        {
            var model = new NodeEntryCombo
            {
                CurrentContent = currentContent,
                Nodes          = GetNodes(currentContent.ContentLink),
                Entries        = GetEntries(currentContent.ContentLink)
            };

            return(View(model));
        }
Exemple #6
0
        public ActionResult Index(NodeContent currentContent)
        {
            // could change the name ...it´s a viewModel
            var model = new NodeEntryCombo
            {
                nodes            = GetNodes(currentContent.ContentLink),
                entries          = GetEntries(currentContent.ContentLink),
                promotionMessage = "Wait and see"
            };

            return(View(model));
        }
        public ActionResult Index(NodeContent currentContent)
        {
            // could change the name ...it´s a viewModel
            var model = new NodeEntryCombo
            {
                nodes   = GetNodes(currentContent.ContentLink),
                entries = GetEntries(currentContent.ContentLink),
                //model.promotionMessage = GetPromotionMessage
                //    (_contentLoader.GetChildren<VariationContent>(currentContent.ContentLink));
                promotionMessage = "Wait and see"
            };

            return(View(model));
        }
Exemple #8
0
        public ActionResult Index(FashionNode currentContent)
        {
            NodeEntryCombo model = new NodeEntryCombo();

            model.Entries = GetEntries(currentContent.ContentLink);
            model.Nodes   = GetNodes(currentContent.ContentLink);

            if (model.Entries.Any() || model.Nodes.Any())
            {
                return(View(model));
            }
            else
            {
                NewBlouseObject newModel = new NewBlouseObject();
                newModel.Code = currentContent.Code;
                return(View("CreateDefaultEntry", newModel));
            }
        }