Beispiel #1
0
        public AddProducerViewModel()
        {
            Address = new AddressData();

            Contact = new ContactData();

            Business = new ProducerBusinessTypeViewModel();
        }
        public EditProducerViewModel()
        {
            Address = new AddressData();

            Contact = new ContactData();

            Business = new ProducerBusinessTypeViewModel();
        }
 public EditProducerViewModel(ProducerData producer)
 {
     NotificationId = producer.NotificationId;
     ProducerId = producer.Id;
     Address = producer.Address;
     Contact = producer.Contact;
     Business = new ProducerBusinessTypeViewModel(producer.Business);   
 }
 public EditProducerViewModel(ProducerData producer)
 {
     NotificationId = producer.NotificationId;
     ProducerId     = producer.Id;
     Address        = producer.Address;
     Contact        = producer.Contact;
     Business       = new ProducerBusinessTypeViewModel(producer.Business);
 }