Пример #1
0
        public LoginController(IConfiguration config, BankManagementContext bankManagementContext)
        {
            _config = config;
            this._bankManagementContext = bankManagementContext;
            if (!this._bankManagementContext.Users.Any())
            {
                this._bankManagementContext.Users.Add(new User
                {
                    Username = "******",
                    Password = "******"
                });
            }

            this._bankManagementContext.SaveChanges();
        }
Пример #2
0
 public UserController(BankManagementContext bankManagementContext)
 {
     this._bankManagementContext = bankManagementContext;
 }
Пример #3
0
 public AccountController(BankManagementContext bankManagementContext)
 {
     this._bankManagementContext = bankManagementContext;
 }
 public TransactionController(BankManagementContext bankManagementContext)
 {
     this._bankManagementContext = bankManagementContext;
 }