コード例 #1
0
 public PostingAuthController(AppContext dbParam, CustomerAccountLogic custActLogicParam, TellerPostingLogic telPostLogicParam, FinancialReportLogic reportLogicParam, BusinessLogic busLogicParam)
 {
     db           = new AppContext();
     custActLogic = new CustomerAccountLogic();
     telPostLogic = new TellerPostingLogic();
     reportLogic  = new FinancialReportLogic();
     busLogic     = new BusinessLogic();
 }
コード例 #2
0
 public PostingAuthController()
 {
     db           = new AppContext();
     custActLogic = new CustomerAccountLogic();
     telPostLogic = new TellerPostingLogic();
     reportLogic  = new FinancialReportLogic();
     busLogic     = new BusinessLogic();
 }
コード例 #3
0
ファイル: EodController.cs プロジェクト: Jayora50/JUCBA
        public ActionResult CloseAllBranches()
        {
            // code to close all branches
            using (var db = new AppContext())
            {
                List <Branch> branches = db.Branches.Where(b => b.Status == BranchStatus.Open).ToList();
                branches.ForEach(b => { b.Status = BranchStatus.Closed; });
                db.SaveChanges();
            }

            return(RedirectToAction("Index", new { message = "All branches closed, you can now proceed to run EOD" }));
        }
コード例 #4
0
ファイル: HomeController.cs プロジェクト: Jayora50/JUCBA
 public HomeController(AppContext dbParam, ApplicationDbContext appdbParam)
 {
     db    = new AppContext();
     appdb = new ApplicationDbContext();
 }
コード例 #5
0
ファイル: HomeController.cs プロジェクト: Jayora50/JUCBA
 public HomeController()
 {
     db    = new AppContext();
     appdb = new ApplicationDbContext();
 }
コード例 #6
0
 public BranchController(AppContext dbParam, IBranchLogic branchLogicParam)
 {
     db          = new AppContext();
     branchLogic = new BranchLogic(new BranchRepository());
 }
コード例 #7
0
 public BranchController()
 {
     db          = new AppContext();
     branchLogic = new BranchLogic(new BranchRepository());
     eodLogic    = new EodLogic();
 }