public AccountManager(IAccountDAL DAL) { if (DAL != null) { accountStorage = DAL; } else { throw new ArgumentNullException("DAL is null!"); } }
public Account Get(string userName) { try { IAccountDAL dal = AccountFactory.GetAccountDAL(); var account = dal.GetAccount(userName); return(account); } catch { return(null); } }
public static void Init(DatabaseTypes dbType, string connectionString, AccountTypes accountType) { switch (dbType) { case DatabaseTypes.SQLServer: if (accountType == AccountTypes.Employee) { AccountDB = new DataLayers.SQLServer.EmployeeAccountDAL(connectionString); } else { AccountDB = new DataLayers.SQLServer.CustomerAccountDAL(connectionString); } break; default: throw new Exception("Database Type is not Supported"); } }
public AccountBL(IAccountDAL context) { _accountdaltest = context; }
public AccountBL() { _accountdaltest = new AccountDAL(); }
public AccountDSL(IAccountDAL accountDAL, ISettingDSL settingDSL) { this._accountDAL = accountDAL; _settingDSL = settingDSL; }
public AccountService(LdCmsDbEntitiesContext LdCmsDbEntitiesContext, IAccountDAL AccountDAL) { this.LdCmsDbEntitiesContext = LdCmsDbEntitiesContext; this.AccountDAL = AccountDAL; this.Dal = AccountDAL; }
public AccountBLL() { db = new AccountDAL(); }
public AccountController(IAccountDAL iAccountDAL) { _iAccountDAL = iAccountDAL; }
public AccountService(IAccountDAL accountDAL) { _accountDAL = accountDAL; }
public AccountService(CTMSContext CTMSContext, IAccountDAL AccountDAL) { this.CTMSContext = CTMSContext; this.AccountDAL = AccountDAL; this.Dal = AccountDAL; }
public AccountBLL(IAccountDAL banking, IEventBus eventBus) { _banking = banking; _eventBus = eventBus; }
public AccountBLL(IAccountDAL accountDAL) { AccountDAL = accountDAL; }
public static void Initialize(string connectionString) { AccountDB = new DataLayers.SqlServer.AccountBLL(connectionString); }
public AccountDSL(IAccountDAL accountDAL) { this._accountDAL = accountDAL; }
public ItineraryController(IItineraryDAL dal, IAccountDAL _accountDAL, ILandmarkDAL _landmarkDAL) { this.itineraryDAL = dal; this.landmarkDAL = _landmarkDAL; this.accountDAL = _accountDAL; }
public AccountBLL(IAccountDAL accountDAL) { this.accountDAL = accountDAL; }
public AccountBLL(IAccountDAL dal) : base(dal) { }
public HomeController(IAccountDAL _acctDAL, ILandmarkDAL _landDAL, IItineraryDAL _itinDAL) { this.acctDAL = _acctDAL; this.landDAL = _landDAL; this.itinDAL = _itinDAL; }
public AccountManager(IRedisDAL <Account> redisDAL, IAccountDAL accountDAL) : base(redisDAL) { _redisDAL = redisDAL; _accountDAL = accountDAL; }