示例#1
0
        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();
            }
        }
示例#2
0
 internal static async Task <string> UpdatePlaceAsync(clsPlace prPlace)
 {
     return(await InsertOrUpdateAsync(prPlace, "http://localhost:60064/api/product/PutPlace", "PUT"));
 }
示例#3
0
 internal static async Task <string> InsertPlaceAsync(clsPlace prPlace)
 {
     //throw new NotImplementedException();
     return(await InsertOrUpdateAsync(prPlace, "http://localhost:60064/api/product/PostPlace", "POST"));
 }