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; this.CustomerPhone = record.CustomersModel.CustomerPhone; }
public CreateRecordViewModel(RentalRecordsModel movieRental) { this.Customers = new List <CustomersModel>(); this.Movies = new List <MoviesModel>(); }