public RentalRecordViewModel(RentalRecordModel record)
 {
     this.RentalRecordID      = record.RentalID;
     this.MoviesID            = record.MovieID;
     this.MovieName           = record.MovieModel.MovieName;
     this.RentalDate          = record.RentalDate;
     this.DueDate             = record.DueDate;
     this.ReturnDate          = record.ReturnDate;
     this.CustomerID          = record.CustomerID;
     this.CustomerName        = record.CustomerModel.CustomerName;
     this.CustomerPhoneNumber = record.CustomerModel.CustomerPhoneNumber;
 }
Exemple #2
0
 public CreateRecordViewModel(RentalRecordModel movieRental)
 {
     this.Customers = new List <CustomerModel>();
     this.Movies    = new List <MovieModel>();
 }