public ImporterViewModel(ImporterData importer) { NotificationId = importer.NotificationId; Address = importer.Address; Contact = importer.Contact; Business = new BusinessTypeViewModel(importer.Business); }
public ImporterViewModel(ImporterData importer) { NotificationId = importer.NotificationId; Address = importer.Address; Contact = importer.Contact; Business = new BusinessTypeViewModel(importer.Business); }
public EditContactViewModel(ImporterData data) { Name = data.Business.Name; FullName = data.Contact.FullName; Email = data.Contact.Email; TelephonePrefix = data.Contact.TelephonePrefix; Telephone = data.Contact.Telephone; }
private static ImporterData GetNewImporterData(EditContactViewModel model, ImporterData oldImporterData) { var newImporterData = new ImporterData { Contact = GetNewContactData(model, oldImporterData.Contact), Business = GetNewBusinessInfoData(model, oldImporterData.Business) }; return(newImporterData); }
public SetImporterDetails(Guid notificationId, ImporterData importer) { NotificationId = notificationId; Importer = importer; }