Skip to content

Instantly share code, notes, and snippets.

@alexbeletsky
Created November 4, 2010 18:37
Show Gist options
  • Save alexbeletsky/662918 to your computer and use it in GitHub Desktop.
Save alexbeletsky/662918 to your computer and use it in GitHub Desktop.
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