Exemple #1
0
        internal static IBlogEntry Get(IBlogEntry item, string imagePath = null)
        {
            Initalise();

            IBlogEntry myEntry = _Manager.BlogEntries.Get(item);

            if (!string.IsNullOrEmpty(imagePath))
            { myEntry.ReplaceImages(myEntry.Content, imagePath); }

            return myEntry;
        }
Exemple #2
0
        internal static IEnumerable<IBlogEntry> GetRows(IBlogEntry item, string imagePath = null)
        {
            Initalise();

            IEnumerable<IBlogEntry> myEntries = _Manager.BlogEntries.GetRows(item);

            if (!string.IsNullOrEmpty(imagePath))
            {
                foreach (IBlogEntry entry in myEntries)
                { entry.ReplaceImages(entry.Content, imagePath); }
            }

            return myEntries;
        }
Exemple #3
0
        internal static IBlogEntry Update(IBlogEntry item)
        {
            Initalise();

            return _Manager.BlogEntries.Update(item);
        }
Exemple #4
0
        internal static IBlogEntry Add(IBlogEntry item)
        {
            Initalise();

            return _Manager.BlogEntries.Add(item);
        }