public async void Save() { Store.Contact = new List<Contact>(); Store.Contact.AddRange(ContactsList.Select(n => n.Contact)); if (!IsValid()) return; if (Store.Name == null ) { MessageBox.Show( "Name field is Empty","Agrimanagr: Manage Stores", MessageBoxButton.OK,MessageBoxImage.Error); return; } using (var c = NestedContainer) { _proxy = Using<IDistributorServiceProxy>(c); ResponseBool response = null; response = await _proxy.StoreAddAsync(Store); string log = string.Format("Created store: {0}; Code: {1};", Store.Name, Store.CostCentreCode); Using<IAuditLogWFManager>(c).AuditLogEntry("Store Management", log); MessageBox.Show(response.ErrorInfo, "Agrimanagr: Manage Stores", MessageBoxButton.OK, MessageBoxImage.Information); if (response.Success) { SendNavigationRequestMessage( new Uri("views/admin/stores/liststores.xaml", UriKind.Relative)); } } }