Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface IBlogRepository : IRepository
- {
- Post GetPostById(Guid postId);
- Post GetPostByFriendlyUrl(string friendlyUrl);
- List<Post> GetPostsByAuthor(string userName);
- List<Post> GetPostByTags(params string[] tags);
- List<Author> Authors { get; }
- void Delete(Post post);
- void Delete(Comment comment);
- void Save(Post post);
- void Save(Comment comment);
- }
- public XmlBlogRepository(string dataPath, IFileReader fileReader, IDirectoryReader directoryReader, ILogger logger)
- {
- this.dataPath = dataPath;
- this.fileReader = fileReader;
- this.directoryReader = directoryReader;
- this.Logger = logger;
- }
Add Comment
Please, Sign In to add comment