public async void SubmitCommandRecieverAsync() { try { Loader.StartLoading(); var location = await _geolocationService.GetLastLocationAsync(); ManifestModel manifestPostModel = null; var result = BarcodeCollection.Where(x => x?.Kegs?.Partners?.Count > 1).ToList(); if (result?.Count > 0) { await NavigateToValidatePartner(result.ToList()); } else { try { manifestPostModel = GenerateManifest(location ?? new Xamarin.Essentials.Location(0, 0), ManifestId); var current = Connectivity.NetworkAccess; if (current == NetworkAccess.Internet) { KegIDResponse kegIDResponse = await _maintainService.PostMaintenanceDoneAsync(manifestPostModel.MaintenanceModels.MaintenanceDoneRequestModel, AppSettings.SessionId, Configuration.PostedMaintenanceDone); try { AddorUpdateManifestOffline(manifestPostModel, false); } catch (Exception ex) { Crashes.TrackError(ex); } await GetPostedManifestDetail(); } else { try { AddorUpdateManifestOffline(manifestPostModel, true); } catch (Exception ex) { Crashes.TrackError(ex); } await GetPostedManifestDetail(); } } catch (Exception ex) { Crashes.TrackError(ex); } finally { Cleanup(); } } } catch (Exception) { } finally { Loader.StopLoading(); } }