public void ApplyToCustomer(Customer customer)
 {
     customer.CustomerId = CustomerId;
     customer.FirstName = FirstName;
     customer.SecondName = SecondName;
     customer.Address = Address;
     customer.City = City;
     customer.ZipCode = ZipCode;
     customer.Phone = Phone;
     customer.EMailAddress = EMailAddress;
 }
 public CustomerViewModel(Customer customer)
 {
     CustomerId = customer.CustomerId;
     FirstName = customer.FirstName;
     SecondName = customer.SecondName;
     Address = customer.Address;
     City = customer.City;
     ZipCode = customer.ZipCode;
     Phone = customer.Phone;
     EMailAddress = customer.EMailAddress;
     Notes = new List<NoteViewModel>(customer.Notes.Select(note => new NoteViewModel(note)));
 }