예제 #1
0
 public ContentItem Save(ContentItem item, ItemEditorVersioningMode mode)
 {
     EnsureChildControls();
     BinderContext = CreateCommandContext();
     item          = EditAdapter.SaveItem(item, AddedEditors, mode, Page.User);
     if (Saved != null)
     {
         Saved.Invoke(this, new ItemEventArgs(item));
     }
     return(item);
 }
예제 #2
0
 /// <summary>Saves <see cref="CurrentItem"/> with the values entered in the form.</summary>
 public ContentItem Save(ContentItem item, ItemEditorVersioningMode mode)
 {
     EnsureChildControls();
     BinderContext = new CommandContext(GetDefinition(), item, "Unknown", Page.User, this, new N2.Edit.Web.PageValidator <CommandContext>(Page));
     item          = EditAdapter.SaveItem(item, AddedEditors, mode, Page.User);
     if (Saved != null)
     {
         Saved.Invoke(this, new ItemEventArgs(item));
     }
     return(item);
 }