public async void Save() { if (!IsValid()) return; using (var c = NestedContainer) { _proxy = Using<IDistributorServiceProxy>(c); ResponseBool response = null; response = await _proxy.VehicleAddAsync(Vehicle); string log = string.Format("Created vehicle: {0}; Code: {1};", Vehicle.Name, Vehicle.Code); Using<IAuditLogWFManager>(c).AuditLogEntry("Vehicle Management", log); MessageBox.Show(response.ErrorInfo, "Agrimanagr: Manage Vehicles", MessageBoxButton.OK, MessageBoxImage.Information); if (response.Success) { SendNavigationRequestMessage( new Uri("views/admin/vehicles/listvehicles.xaml", UriKind.Relative)); } } }