Exemplo n.º 1
0
 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);
 }
Exemplo n.º 3
0
 public EditContactViewModel(ImporterData data)
 {
     Name            = data.Business.Name;
     FullName        = data.Contact.FullName;
     Email           = data.Contact.Email;
     TelephonePrefix = data.Contact.TelephonePrefix;
     Telephone       = data.Contact.Telephone;
 }
Exemplo n.º 4
0
        private static ImporterData GetNewImporterData(EditContactViewModel model, ImporterData oldImporterData)
        {
            var newImporterData = new ImporterData
            {
                Contact  = GetNewContactData(model, oldImporterData.Contact),
                Business = GetNewBusinessInfoData(model, oldImporterData.Business)
            };

            return(newImporterData);
        }
Exemplo n.º 5
0
 public SetImporterDetails(Guid notificationId, ImporterData importer)
 {
     NotificationId = notificationId;
     Importer       = importer;
 }