Created
November 4, 2010 18:37
-
-
Save alexbeletsky/662918 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Trackyourtasks.Core.DAL.DataModel; | |
namespace Trackyourtasks.Core.DAL.Repositories | |
{ | |
/// <summary> | |
/// Repository of Blog posts | |
/// </summary> | |
public interface IBlogPostsRepository | |
{ | |
/// <summary> | |
/// Gets all blog posts from repository | |
/// </summary> | |
IQueryable<BlogPost> BlogPosts { get; } | |
/// <summary> | |
/// Creates new record and initialize Id for new objects and update exiting objects | |
/// </summary> | |
/// <param name="blogPost">Blog post object</param> | |
void SaveBlogPost(BlogPost blogPost); | |
/// <summary> | |
/// Deletes blog post | |
/// </summary> | |
/// <param name="blogPost"></param> | |
void DeleteBlogPost(BlogPost blogPost); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment