Пример #1
0
 private void ChangeEntities(Record record, Publisher publisher, AdminEditModel model)
 {
     record.RecordName = model.record.RecordName;
     record.RecordDescription = model.record.RecordDescription;
     record.Author = model.record.Author;
     publisher.PublisherName = model.publisher.PublisherName;
     publisher.Address = model.publisher.Address;
     publisher.Email = model.publisher.Email;
     publisher.Number = model.publisher.Number;
     record.Author = publisher;
 }
Пример #2
0
 public AdminEditModel(Record newRecord, Publisher newPublisher)
 {
     publisher = newPublisher;
     record = newRecord;
 }