async Task postChocProbabilitiesAsync() { //var locator = CrossGeolocator.Current; //locator.DesiredAccuracy = 50; //var position = await locator.GetPositionAsync(1000); List <WalTable> chocInformation = await AzureManager.AzureManagerInstance.GetChocInformation(); int tableCount = chocInformation.Count; string newRowID = tableCount + 1 + ""; WalTable model = new WalTable() { ID = newRowID, MilkChocProb = MilkChocProb, DarkChocProb = DarkChocProb }; await AzureManager.AzureManagerInstance.PostChocInformation(model); }
public async Task PostChocInformation(WalTable walModel) { await this.walTable.InsertAsync(walModel); }