public UnitOfWork(WebBlogDbContext context) { _context = context; CategoryRepository = new CategoryRepository(_context); ArticleRepository = new ArticleRepository(_context); CommentRepository = new CommentRepository(_context); MediaRepository = new MediaRepository(_context); }
public BlogService(WebBlogDbContext db) { this.db = db; }
public MediaController(WebBlogDbContext context) { _context = context; }
public AuthorRepositoryEf(WebBlogDbContext dbContext) { _dbContext = dbContext; }
public PostRepositoryEf(WebBlogDbContext dbContext) { _dbContext = dbContext; }
public ArticlesController(WebBlogDbContext context) { _context = context; }