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(); }
public UserController(BankManagementContext bankManagementContext) { this._bankManagementContext = bankManagementContext; }
public AccountController(BankManagementContext bankManagementContext) { this._bankManagementContext = bankManagementContext; }
public TransactionController(BankManagementContext bankManagementContext) { this._bankManagementContext = bankManagementContext; }