Beispiel #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);
 }
Beispiel #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));
        }
        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));
        }