Esempio n. 1
0
 public PartialViewResult Add(LayoutArea layoutArea, int pageId = 0, string returnUrl = null)
 {
     TempData["returnUrl"] = returnUrl;
     var model = new AddWidgetModel
     {
         LayoutArea = layoutArea,
         Webpage = _documentService.GetDocument<Webpage>(pageId)
     };
     return PartialView(model);
 }
Esempio n. 2
0
        public PartialViewResult Add(LayoutArea layoutArea, int pageId = 0, string returnUrl = null)
        {
            TempData["returnUrl"] = returnUrl;
            var model = new AddWidgetModel
            {
                LayoutArea = layoutArea,
                Webpage    = _webpageRepository.Get(pageId)
            };

            return(PartialView(model));
        }
Esempio n. 3
0
        public PartialViewResult Add(LayoutArea layoutArea, int pageId = 0, string returnUrl = null)
        {
            TempData["returnUrl"] = returnUrl;
            var model = new AddWidgetModel
            {
                LayoutArea = layoutArea,
                Webpage    = _documentService.GetDocument <Webpage>(pageId)
            };

            return(PartialView(model));
        }