public async void db() { calenDatabase = new CalendarTableDatabaseAzure(); var details = await calenDatabase.GetCalendar(); if (Title == "Calories") { gms1.Clear(); foreach (var row in details) { gms1.Add(new GraphModel { Amount = row.Calorie, Date = row.Date.Date }); } } else { gms1.Clear(); foreach (var row in details) { gms1.Add(new GraphModel { Amount = row.Weight, Date = row.Date.Date }); } } }
public async void db() { calenDatabase = new CalendarTableDatabaseAzure(); var details = await calenDatabase.GetCalendar(); foreach (var row in details) { Calories.Add(new GraphModel { Amount = row.Calorie, Date = row.Date.Date }); Weights.Add(new GraphModel { Amount = row.Weight, Date = row.Date.Date }); } }