Exemplo n.º 1
0
 public BorrowController()
 {
     this.borrowDal   = new BorrowDal();
     this.mediaDal    = new MediaDal();
     this.customerDal = new MemberDal();
     if (string.IsNullOrEmpty(SelectedCategory))
     {
         SelectedCategory = "All";
     }
     if (string.IsNullOrEmpty(SelectedType))
     {
         SelectedType = "All";
     }
 }
Exemplo n.º 2
0
 public MemberBll(IMemberDal memberDal)
 {
     _memberDal = memberDal;
 }
Exemplo n.º 3
0
 public MemberController(IRSMonkeyContext context, IMemberDal dal)
 {
     _dal = dal;
 }
Exemplo n.º 4
0
 public MemberManager(IMemberDal memberDal, IKpsService kpsService)
 {
     _memberDal  = memberDal;
     _kpsService = kpsService;
 }
 public AccountsController()
 {
     this.memberDal = new MemberDal();
     this.rentalDal = new RentalDal();
 }
 /// <summary>
 /// Creates a new accounts controller with the desired dals
 /// </summary>
 /// <param name="memberDal">The customer dal for communication</param>
 /// <param name="rentalDal">the rentalDal dal for communication</param>
 /// @precondition none
 /// @postcondition the controller is created with the input dals
 public AccountsController(IMemberDal memberDal, IRentalDal rentalDal)
 {
     this.memberDal = memberDal;
     this.rentalDal = rentalDal;
 }
Exemplo n.º 7
0
 public MemberManager(IMemberDal memberDal, IUserService userService)
 {
     _memberDal   = memberDal;
     _userService = userService;
 }
Exemplo n.º 8
0
 public MemberManager(IMemberDal memberDal)
 {
     _memberDal = memberDal;
 }
Exemplo n.º 9
0
 /// <summary>
 /// Creates a new borrow controller with the desired dals
 /// </summary>
 /// <param name="borrowDal">the borrow dal for communication</param>
 /// <param name="mediaDal">the media dal for communication</param>
 /// <param name="customerDal">the customer dal for communication</param>
 /// @precondition none
 /// @postcondition the controller is created with the input dals
 public BorrowController(IBorrowDal borrowDal, IMediaDal mediaDal, IMemberDal customerDal)
 {
     this.borrowDal   = borrowDal;
     this.mediaDal    = mediaDal;
     this.customerDal = customerDal;
 }
Exemplo n.º 10
0
 public MemberLoginController(IMemberLoginDal dal, IMemberDal memberDal, IMapper mapper)
 {
     _dal = dal;
     _memberDal = memberDal;
     _mapper = mapper;
 }
Exemplo n.º 11
0
 public MemberManager(IMemberDal dal, IUserService userService)
 {
     _dal         = dal;
     _userService = userService;
 }
Exemplo n.º 12
0
 public MemberManager(IMemberDal memberDal, IKpsService service)
 {
     _memberDal = memberDal;
     _service   = service;
 }
Exemplo n.º 13
0
 public HomeController()
 {
     this.memberDal    = new MemberDal();
     this.librarianDal = new LibrarianDal();
 }
Exemplo n.º 14
0
 /// <summary>
 /// Creates a new home controller with the desired dals
 /// </summary>
 /// <param name="memberDal">The member dal for communication</param
 /// <param name="librarianDal">The librarian dal for communication</param>
 /// @precondition none
 /// @postcondition the controller is created with the input dals
 public HomeController(IMemberDal memberDal, ILibrarianDal librarianDal)
 {
     this.memberDal    = memberDal;
     this.librarianDal = librarianDal;
 }
Exemplo n.º 15
0
 /// <summary>
 /// The constructor for the librarian page where you pass in the desired member dal and rental dal
 /// </summary>
 /// <param name="memberDal"> the member dal being passed in</param>
 /// <param name="rentalDal"> the rentalDal dal being passed in</param>
 /// @precondition none
 /// @postcondition the librarian controller is created with the desired dals
 public LibrarianController(IMemberDal memberDal, IRentalDal rentalDal)
 {
     this.memberDal = memberDal;
     this.rentalDal = rentalDal;
 }
Exemplo n.º 16
0
 public LibrarianController()
 {
     this.memberDal = new MemberDal();
     this.rentalDal = new RentalDal();
 }