Exemple #1
0
        public TEntity Read <TEntity>(Guid id) where TEntity : class, ISitecoreDomainEntity
        {
            var item = CurrentDatabase.GetItem(new ID(id));

            return(Read <TEntity>(item));
        }
Exemple #2
0
        public TEntity Read <TEntity>(string contentPath) where TEntity : class, ISitecoreDomainEntity
        {
            var item = CurrentDatabase.GetItem(contentPath);

            return(Read <TEntity>(item));
        }
 public Item GetItem(string path)
 {
     return(CurrentDatabase.GetItem(path));
 }