public TeamController(BBContext context, ILogger <TeamController> logger, IMapper mapper, IHttpContextAccessor httpContextAccessor) { this.context = context; this.logger = logger; this.mapper = mapper; this.httpContextAccessor = httpContextAccessor; }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); UnityConfig.RegisterComponents(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); //ProductDtoCache.GetProductCahce(); BBContext bbContext = new BBContext(); UnitOfWork unitOfwork = new UnitOfWork(bbContext); ProductService productService = new ProductService(unitOfwork); productService.InitializeProductCache(); }
public CardService(IConfiguration configuration, BBContext context, IMapper mapper) : base(context, mapper) { _configuration = configuration; }
public CreditBranchService(BBContext context, IMapper mapper) : base(context, mapper) { }
protected BaseService(BBContext context, IMapper mapper) { Context = context; Mapper = mapper; }
public UserService(BBContext context, IMapper mapper) : base(context, mapper) { }
public CheckingBranchService(BBContext context, IMapper mapper) : base(context, mapper) { }
public DepositBranchService(ICheckingBranchService checkingBranchService, BBContext context, IMapper mapper) : base(context, mapper) { _checkingBranchService = checkingBranchService; }