Exemplo n.º 1
0
 public RentalRecordViewModel(RentalRecordModel rentalRecord)
 {
     this.RentalID            = rentalRecord.RentalID;
     this.MovieID             = rentalRecord.MovieID;
     this.MovieName           = rentalRecord.MovieModel.MovieName;
     this.RentalDate          = rentalRecord.RentalDate;
     this.DueDate             = rentalRecord.DueDate;
     this.ReturnDate          = rentalRecord.ReturnDate;
     this.CustomerID          = rentalRecord.CustomerID;
     this.CustomerName        = rentalRecord.CustomerModel.CustomerName;
     this.CustomerPhoneNumber = rentalRecord.CustomerModel.CustomerPhoneNumber;
 }
Exemplo n.º 2
0
 public RentalRecordModel(RentalRecordModel record)
 {
     
 }
Exemplo n.º 3
0
 public CheckOutViewModel(RentalRecordModel rentalRecord)
 {
     this.Customers = new List <CustomerModel>();
     this.Movies    = new List <MovieModel>();
 }