Example #1
0
        public UnitOfWork(WebBlogDbContext context)
        {
            _context = context;

            CategoryRepository = new CategoryRepository(_context);
            ArticleRepository  = new ArticleRepository(_context);
            CommentRepository  = new CommentRepository(_context);
            MediaRepository    = new MediaRepository(_context);
        }
Example #2
0
 public BlogService(WebBlogDbContext db)
 {
     this.db = db;
 }
Example #3
0
 public MediaController(WebBlogDbContext context)
 {
     _context = context;
 }
 public AuthorRepositoryEf(WebBlogDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public PostRepositoryEf(WebBlogDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Example #6
0
 public ArticlesController(WebBlogDbContext context)
 {
     _context = context;
 }