public void SetDetails(clsPlace prPlace) { _Place = prPlace; txtPlaceName.Enabled = string.IsNullOrEmpty(_Place.PlaceName); UpdateForm(); UpdateDisplay(); // frmMain.Instance.ProductNameChanged += new frmMain.Notify(updateTitle); Show(); }
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")); }