public CampaignDbService(AdvertDbContext advertDbContext, IJwtTokenService jwtTokenService, IBannerAreaCalculatorService bannerAreaCalculatorService, IMapper mapper) { _advertDbContext = advertDbContext; _jwtTokenService = jwtTokenService; _bannerAreaCalculatorService = bannerAreaCalculatorService; _mapper = mapper; }
public JwtTokenService(IConfiguration configuration, AdvertDbContext advertDbContext, IHttpContextAccessor httpContextAccessor, IPasswordService passwordService) { Configuration = configuration; _advertDbContext = advertDbContext; _httpContextAccessor = httpContextAccessor; _passwordService = passwordService; }
public ClientDbService(AdvertDbContext advertDbContext, IMapper mapper, IPasswordService passwordService) { _advertDbContext = advertDbContext; _mapper = mapper; _passwordService = passwordService; }
public EntityRepository(AdvertDbContext dbContext) { this.DbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); this.Entities = dbContext.Set <T>(); }
public AdvertDbService(AdvertDbContext context, IConfiguration configuration) { _context = context; Configuration = configuration; }