SAB-E02/Blog.DAL/Repository/BlogRepository.cs
2017-04-09 12:48:18 +02:00

23 lines
428 B
C#

using System.Collections.Generic;
using Blog.DAL.Infrastructure;
using Blog.DAL.Model;
using System;
namespace Blog.DAL.Repository
{
public class BlogRepository
{
private readonly BlogContext _context;
public BlogRepository()
{
_context = new BlogContext();
}
public IEnumerable<Post> GetAllPosts()
{
return _context.Posts;
}
}
}