Ejemplo n.º 1
0
        /// <summary>
        /// Method to get the ItemPricePlocationModels for the given location
        /// </summary>
        /// <param name="location"></param>
        /// <returns></returns>
        private async Task GetItemPriceLocationModelsAsync(LocationModel location)
        {
            if (location == null)
            {
                App.Log.Error("test", "locationisnull");
            }

            var url = baseUrl + LocationModel.UrlSuffix + "/" + location.RemoteDbId + "/" +
                      ItemPriceLocationModel.UrlSuffix;

            var ipls = await helper.RefreshDataAsync <ItemPriceLocationModel>(url);

            location.AddItems(ipls);
        }