public EfUnitOfWork(EfArticleDbContext _dbContext, IHttpContextAccessor _accessor) { dbContext = _dbContext ?? throw new ArgumentException("dbContext can cot ne null"); accessor = _accessor; }
public EfArticleRepository(EfArticleDbContext context, IHttpContextAccessor accessor) : base(context) { article = new Data.Model.Article(); _accessor = accessor; }