protected async override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); if (e.Parameter != null) { string lcPlaceName = e.Parameter.ToString(); _Place = await ServiceClient.GetPlaceInstockAsync(lcPlaceName); UpdateDisplay(); } else { _Place = new clsPlace(); } }
internal static async Task <string> UpdatePlaceAsync(clsPlace prPlace) { return(await InsertOrUpdateAsync(prPlace, "http://localhost:60064/api/product/PutPlace", "PUT")); }
internal static async Task <string> InsertPlaceAsync(clsPlace prPlace) { //throw new NotImplementedException(); return(await InsertOrUpdateAsync(prPlace, "http://localhost:60064/api/product/PostPlace", "POST")); }