public RentalRecordViewModel(RentalRecordsModel record)
 {
     this.RentalID     = record.RentalID;
     this.MovieID      = record.MovieID;
     this.MovieName    = record.MoviesModel.MovieName;
     this.RentalDate   = record.RentalDate;
     this.DueDate      = record.DueDate;
     this.ReturnDate   = record.ReturnDate;
     this.CustomerID   = record.CustomerID;
     this.CustomerName = record.CustomersModel.CustomerName;
 }
Exemple #2
0
 public RentAMovieViewModel(RentalRecordsModel movieRental)
 {
     this.Customers = new List <CustomersModel>();
     this.Movies    = new List <MoviesModel>();
 }