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(); }
public PostingAuthController() { db = new AppContext(); custActLogic = new CustomerAccountLogic(); telPostLogic = new TellerPostingLogic(); reportLogic = new FinancialReportLogic(); busLogic = new BusinessLogic(); }
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" })); }
public HomeController(AppContext dbParam, ApplicationDbContext appdbParam) { db = new AppContext(); appdb = new ApplicationDbContext(); }
public HomeController() { db = new AppContext(); appdb = new ApplicationDbContext(); }
public BranchController(AppContext dbParam, IBranchLogic branchLogicParam) { db = new AppContext(); branchLogic = new BranchLogic(new BranchRepository()); }
public BranchController() { db = new AppContext(); branchLogic = new BranchLogic(new BranchRepository()); eodLogic = new EodLogic(); }