Beispiel #1
0
 public T CreateItem<TParent, T>(TParent parentItem, T item) where TParent : class where T : class
 {
     using (new SecurityDisabler())
     {
         return _sitecoreContext.Create(parentItem, item);
     }
 }
Beispiel #2
0
 public bool Create(TopNavigation entity)
 {
     try
     {
         _context.Create(_folder, entity);
         return(true);
     }
     catch (Exception ex)
     {
         RepositoryErrors.Add(ex);
         return(false);
     }
 }
Beispiel #3
0
 public bool Create(Comment entity)
 {
     try
     {
         using (new SecurityDisabler())
         {
             _context.Create(_folder, entity);
             return(true);
         }
     }
     catch (Exception ex)
     {
         RepositoryErrors.Add(ex);
         return(false);
     }
 }
Beispiel #4
0
 public TItem Create(string itemName, GlassBase parent, Language language = null)
 {
     return(context.Create <TItem, GlassBase>(parent, itemName, language));
 }