private void ImportCategory(ImportPageModel model) { // import the category int startingCategoryId = model.CategoryId; int startingContentNodeId = model.ParentNodeId; UCategoryService.ProcessCategory(startingContentNodeId, startingCategoryId, model.DeepImport, true, model.Test3Only); }
public ActionResult ImportPageView() { var current = Umbraco.TypedContent(UmbracoContext.PageId); var home = current.AncestorOrSelf(1); ImportPageModel model = new ImportPageModel(); model.ContentNodes = new SelectList(home.Descendants("ProductListing"), "Id", "Name"); model.CategoryId = 12; model.Categories = UCategoryService.GetCategoryListItems(); //model.ContentNodes = GetNodes("ProductListing"); return(this.PartialView("~/Views/Partials/ImportPageView.cshtml", model)); }