public UnitOfWork(BlogDbContext dbContext, ICurrencyRepository currencyRepository, ICurrencyHistoryRepository currencyHistoryRepository, ApplicationDbContext applicationDbContext) { _dbContext = dbContext; this.currencyRepository = currencyRepository; this.currencyHistoryRepository = currencyHistoryRepository; _applicationDbContext = applicationDbContext; }
public CurrencyController(ICurrencyRepository currencyRepository, ICurrencyHistoryRepository currencyHistoryRepository, UserManager <ApplicationUser> userManager, IUnitOfWork unitOfWork) { _currencyRepository = currencyRepository; _currencyHistoryRepository = currencyHistoryRepository; _userManager = userManager; this.unitOfWork = unitOfWork; }