示例#1
0
        public ActionResult Edit([ModelBinder(typeof(TypeConverterModelBinder))] ContentPath path, FormCollection formValues)
        {
            var contentInfo = GetContentOrNewRoot(path);

            return(UpdateContent(
                       contentInfo,
                       s => path.ReplaceLastSegment(s),
                       newPath => RedirectToAction("Edit", new { path = newPath })
                       ));
        }