Ejemplo n.º 1
0
        public async Task <int> GenerateCustomer()
        {
            _customerCatalog.DataPackage = GenerateCustomerTData();
            int CustomerFK = await _customerCatalog.Create(_customerCatalog.DataPackage);

            return(CustomerFK);
        }
Ejemplo n.º 2
0
 public void Execute(object parameter)
 {
     _catalog.Create(new Customer(_customerMasterDetailsViewModel.ItemViewModelSelected.CVR,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.FirstName,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.LastName,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.EmailAddress,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.PhoneNumber,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.Address,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.City,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.AreaCode,
                                  _customerMasterDetailsViewModel.ItemViewModelSelected.Info));
     _customerMasterDetailsViewModel.RefreshCustomerItemViewModelCollection();
     _catalog.Save();
 }