public JsonResult Import(Int64 id, PageImportModel model)
        {
            if (ModelState.IsValid)
            {
                string categoryTemplate     = System.IO.File.ReadAllText(Server.MapPath("~" + HttpUtility.UrlDecode(model.TemplateUrl)));
                string categoryItemTemplate = System.IO.File.ReadAllText(Server.MapPath("~" + HttpUtility.UrlDecode(model.TemplateItemUrl)));
                string relativePath         = HttpUtility.UrlDecode(model.FolderUrl);

                this.AddCategory(relativePath, 1, id, categoryTemplate, categoryItemTemplate, true);

                return(Json("הייבוא התבצע בהצלחה"));
            }

            return(Json(null));
        }
        public JsonResult Import(Int64 id, PageImportModel model)
        {
            if (ModelState.IsValid)
            {
                string categoryTemplate = System.IO.File.ReadAllText(Server.MapPath("~" + HttpUtility.UrlDecode(model.TemplateUrl)));
                string categoryItemTemplate = System.IO.File.ReadAllText(Server.MapPath("~" + HttpUtility.UrlDecode(model.TemplateItemUrl)));
                string relativePath = HttpUtility.UrlDecode(model.FolderUrl);

                this.AddCategory(relativePath, 1, id, categoryTemplate, categoryItemTemplate, true);

                return Json("הייבוא התבצע בהצלחה");
            }

            return Json(null);
        }