async Task ExecuteGetTransCommand() { if (CrossSecureStorage.Current.HasKey("tid")) { string tid = CrossSecureStorage.Current.GetValue("tid"); hotelt = await CosmosTransactionService.searchHotelById(tid); CrossSecureStorage.Current.DeleteKey("tid"); } else { string uid = CrossSecureStorage.Current.GetValue("id"); hotelt = await CosmosTransactionService.SearchHotelByLastUid(uid); } }
async Task ExecuteInsrtTransCommand() { await CosmosTransactionService.InsertHotelTrans(hotelTrans); }
async Task ExecuteUpdateTrans() { await CosmosTransactionService.UpdateHotelTrans(hotelt); await DisplayAlert("SUCCESS", "operation success", "OK"); }