Exemple #1
0
        public CustomerDrivingHistoryVM(CustomerDrivingHistory x)
        {
            if (x != null)
            {
                Id                 = x.Id;
                DateRecorded       = x.DateRecorded;
                CustomerID         = x.CustomerID;
                NumDUIs            = x.NumDUIs;
                NumSpeedingTickets = x.NumSpeedingTickets;

                Customer = new CustomerVM(x.Customer);
            }
        }
Exemple #2
0
 public IndexViewAndCustomerVM(IndexViewModel x, CustomerVM y)
 {
     indexVM = x;
     custVM  = y;
 }
Exemple #3
0
 public RegisterAndCustomerVM(RegisterViewModel x, CustomerVM y)
 {
     regVM  = x;
     custVM = y;
 }