Пример #1
0
 /// <summary>
 /// Constructor that injects all the dependencies for the account controller.
 /// </summary>
 /// <param name="authProvider"></param>
 /// <param name="userDal"></param>
 /// <param name="checkinDal"></param>
 /// <param name="badgeDal"></param>
 public AccountController(IAuthProvider authProvider, IUserDAL userDal, ICheckinSqlDAL checkinDal, IBadgeSqlDAL badgeDal)
 {
     this.authProvider = authProvider;
     this.userDal      = userDal;
     this.checkinDal   = checkinDal;
     this.badgeDal     = badgeDal;
 }
Пример #2
0
 /// <summary>
 /// Constructor that adds all the dependencies
 /// </summary>
 /// <param name="authProvider">Where the authentication asd authoriztion is housed</param>
 /// <param name="dal">The locaion data access layer</param>
 /// <param name="categoryDal">The class that is used to access the categories table.</param>
 public LocationController(IAuthProvider authProvider, ILocationDAL dal, ICategorySqlDAL categoryDal, ICheckinSqlDAL checkinDal, IBadgeSqlDAL badgeDal)
 {
     this.authProvider = authProvider;
     this.dal          = dal;
     this.categoryDal  = categoryDal;
     this.checkinDal   = checkinDal;
     this.badgeDal     = badgeDal;
 }
Пример #3
0
 public HomeController(IBadgeSqlDAL dal)
 {
     this.dal = dal;
 }