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; }
public RentalRecordModel(RentalRecordModel record) { }
public CheckOutViewModel(RentalRecordModel rentalRecord) { this.Customers = new List <CustomerModel>(); this.Movies = new List <MovieModel>(); }