async Task <Profile> GetUserAsync(string token)
        {
            var userFromDataBase = Connection.Get <Profile>(x => x.Token == token);

            _user = await serverApiService.GetProfileAsync(userFromDataBase.Id);

            return(_user);
        }
        public async Task DataSynchronisationAsync()
        {
            if (storedSettingsService.IsDataSynchronized || storedSettingsService.Profile == null)
            {
                storedSettingsService.Profile = await serverApiService.GetProfileAsync(storedSettingsService.ProfileId, storedSettingsService.AuthToken);
            }
            if (storedSettingsService.TripCompleted != null)
            {
                await paymentProcessing.TripCompletedAsync(storedSettingsService.TripCompleted);
            }
            else
            {
                var result = await serverApiService.SaveProfileAsync(storedSettingsService.ProfileId, storedSettingsService.Profile, storedSettingsService.AuthToken);

                if (result != null)
                {
                    if (result.StatusCode == System.Net.HttpStatusCode.OK)
                    {
                        storedSettingsService.IsDataSynchronized = true;
                    }
                }
            }
        }