public AccountTransactionsController(MiniBankingDbContext context, IHttpContextAccessor httpContextAccessor) : base(context, httpContextAccessor) { transactionService = new AccountTransactionService(context, Constants.DefaultConnectionString); depositService = new AccountDepositService(context); withdrawalService = new AccountWithdrawalService(context); customerAccountService = new CustomerAccountService(context); transferService = new AccountTransferService(context); _httpContextAccessor = httpContextAccessor; }
public LoginController(MiniBankingDbContext context) { _context = context; authService = new AuthenticateService(_context); customerService = new CustomerService(_context); customerAccountService = new CustomerAccountService(_context); depositService = new AccountDepositService(_context); transactionService = new AccountTransactionService(_context, Constants.DefaultConnectionString); }
public BaseController(MiniBankingDbContext context, IHttpContextAccessor httpContextAccessor) { ResponseModel = new ResponseModel(); Context = context; var user = httpContextAccessor.HttpContext.User; if (user.Identity.IsAuthenticated) { var claimsIdentity = (System.Security.Claims.ClaimsIdentity)user.Identity; AppClaim = claimsIdentity.ParseClaim(); } else { AppClaim = null; } }
public AccountWithdrawalService(MiniBankingDbContext context) : base(context) { _context = context; }
public AuthenticateService(MiniBankingDbContext context) : base(context) { _context = context; }
public CustomerService(MiniBankingDbContext context) : base(context) { _context = context; }
public AccountDepositService(MiniBankingDbContext context) : base(context) { _context = context; }
public GenericRepository(MiniBankingDbContext context) { _context = context; }
public AccountTransferService(MiniBankingDbContext context) : base(context) { _context = context; }
public AccountTransactionService(MiniBankingDbContext context, string connectionString) : base(context) { _context = context; _connectionString = connectionString; }
public CustomerController(MiniBankingDbContext context, IHttpContextAccessor httpContextAccessor) : base(context, httpContextAccessor) { customerService = new CustomerService(context); _httpContextAccessor = httpContextAccessor; }