public async Task GetRecepies() { GetUserData(); var recepieSearchList = await ApiService.GetAllRecepiesPartialById(this._UserId, 1, 5); foreach (var recepie in recepieSearchList) { RecepiesPartials.Add(recepie); } }
public async Task RefreshApi() { GetUserData(); var recepieSearchList = await ApiService.GetAllRecepiesPartialById(this._UserId, 1, 5); // if (recepieSearchList.Capacity == 0) //{ foreach (var recepie in recepieSearchList) { RecepiesPartials.Add(recepie); } for (int i = 1; i <= recepieSearchList.Count; i++) { RecepiesPartials.RemoveAt(0); } // } IsRefreshing = false; }