コード例 #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";
     }
 }
コード例 #2
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;
 }