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