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; }
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; }
internal static IBlogEntry Update(IBlogEntry item) { Initalise(); return _Manager.BlogEntries.Update(item); }
internal static IBlogEntry Add(IBlogEntry item) { Initalise(); return _Manager.BlogEntries.Add(item); }