private async void Save() { Centre.CenterType = SelectedCentreType; Centre.Route = SelectedRoute; if (!IsValid()) return; using (var c = NestedContainer) { _proxy = Using<IDistributorServiceProxy>(c); ResponseBool response = null; response = await _proxy.CentreAddAsync(Centre); string log = string.Format("Created new centre: {0}; Code: {1}; And centre Type {2}", Centre.Name, Centre.Code, SelectedCentreType.Name); Using<IAuditLogWFManager>(c).AuditLogEntry("User Administration", log); MessageBox.Show(response.ErrorInfo, "Agrimanagr: Manage Centres", MessageBoxButton.OK, MessageBoxImage.Information); if (response.Success) { SendNavigationRequestMessage(new Uri("views/admin/centres/listcentres.xaml", UriKind.Relative)); } } }