Esempio n. 1
0
 public AccountManager(IAccountDAL DAL)
 {
     if (DAL != null)
     {
         accountStorage = DAL;
     }
     else
     {
         throw new ArgumentNullException("DAL is null!");
     }
 }
Esempio n. 2
0
 public Account Get(string userName)
 {
     try
     {
         IAccountDAL dal     = AccountFactory.GetAccountDAL();
         var         account = dal.GetAccount(userName);
         return(account);
     }
     catch
     {
         return(null);
     }
 }
Esempio n. 3
0
        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");
            }
        }
Esempio n. 4
0
 public AccountBL(IAccountDAL context)
 {
     _accountdaltest = context;
 }
Esempio n. 5
0
 public AccountBL()
 {
     _accountdaltest = new AccountDAL();
 }
Esempio n. 6
0
 public AccountDSL(IAccountDAL accountDAL, ISettingDSL settingDSL)
 {
     this._accountDAL = accountDAL;
     _settingDSL      = settingDSL;
 }
Esempio n. 7
0
 public AccountService(LdCmsDbEntitiesContext LdCmsDbEntitiesContext, IAccountDAL AccountDAL)
 {
     this.LdCmsDbEntitiesContext = LdCmsDbEntitiesContext;
     this.AccountDAL             = AccountDAL;
     this.Dal = AccountDAL;
 }
Esempio n. 8
0
 public AccountBLL()
 {
     db = new AccountDAL();
 }
 public AccountController(IAccountDAL iAccountDAL)
 {
     _iAccountDAL = iAccountDAL;
 }
Esempio n. 10
0
 public AccountService(IAccountDAL accountDAL)
 {
     _accountDAL = accountDAL;
 }
Esempio n. 11
0
 public AccountService(CTMSContext CTMSContext, IAccountDAL AccountDAL)
 {
     this.CTMSContext = CTMSContext;
     this.AccountDAL  = AccountDAL;
     this.Dal         = AccountDAL;
 }
Esempio n. 12
0
 public AccountBLL(IAccountDAL banking, IEventBus eventBus)
 {
     _banking  = banking;
     _eventBus = eventBus;
 }
Esempio n. 13
0
 public AccountBLL(IAccountDAL accountDAL)
 {
     AccountDAL = accountDAL;
 }
Esempio n. 14
0
 public static void Initialize(string connectionString)
 {
     AccountDB = new DataLayers.SqlServer.AccountBLL(connectionString);
 }
Esempio n. 15
0
 public AccountDSL(IAccountDAL accountDAL)
 {
     this._accountDAL = accountDAL;
 }
Esempio n. 16
0
 public ItineraryController(IItineraryDAL dal, IAccountDAL _accountDAL, ILandmarkDAL _landmarkDAL)
 {
     this.itineraryDAL = dal;
     this.landmarkDAL  = _landmarkDAL;
     this.accountDAL   = _accountDAL;
 }
 public AccountBLL(IAccountDAL accountDAL)
 {
     this.accountDAL = accountDAL;
 }
Esempio n. 18
0
 public AccountBLL(IAccountDAL dal) : base(dal)
 {
 }
Esempio n. 19
0
 public HomeController(IAccountDAL _acctDAL, ILandmarkDAL _landDAL, IItineraryDAL _itinDAL)
 {
     this.acctDAL = _acctDAL;
     this.landDAL = _landDAL;
     this.itinDAL = _itinDAL;
 }
Esempio n. 20
0
 public AccountManager(IRedisDAL <Account> redisDAL, IAccountDAL accountDAL) : base(redisDAL)
 {
     _redisDAL   = redisDAL;
     _accountDAL = accountDAL;
 }