Exemplo n.º 1
0
 public TeamController(BBContext context, ILogger <TeamController> logger, IMapper mapper, IHttpContextAccessor httpContextAccessor)
 {
     this.context             = context;
     this.logger              = logger;
     this.mapper              = mapper;
     this.httpContextAccessor = httpContextAccessor;
 }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 public CardService(IConfiguration configuration, BBContext context, IMapper mapper) : base(context, mapper)
 {
     _configuration = configuration;
 }
Exemplo n.º 4
0
 public CreditBranchService(BBContext context, IMapper mapper) : base(context, mapper)
 {
 }
Exemplo n.º 5
0
 protected BaseService(BBContext context, IMapper mapper)
 {
     Context = context;
     Mapper  = mapper;
 }
Exemplo n.º 6
0
 public UserService(BBContext context, IMapper mapper) : base(context, mapper)
 {
 }
Exemplo n.º 7
0
 public CheckingBranchService(BBContext context, IMapper mapper) : base(context, mapper)
 {
 }
Exemplo n.º 8
0
 public DepositBranchService(ICheckingBranchService checkingBranchService, BBContext context, IMapper mapper) : base(context, mapper)
 {
     _checkingBranchService = checkingBranchService;
 }