public async void ShowDialog(string prCategoryName) { _Category = await ServiceClient.GetCategoryAsync(prCategoryName); UpdateDisplay(); ShowDialog(); }
internal async static Task <string> DeleteCategoryAsync(clsCategory prCategory) { using (HttpClient lcHttpClient = new HttpClient()) { HttpResponseMessage lcRespMessage = await lcHttpClient.DeleteAsync ($"http://localhost:60064/api/Product/DeleteACategory?WorkName={prCategory.CategoryName}&ProductName={prCategory.CategoryName}"); return(await lcRespMessage.Content.ReadAsStringAsync()); } }
internal async static Task <string> InsertCategoryAsync(clsCategory _Category) { return(await InsertOrUpdateAsync(_Category, "http://localhost:60064/api/Product/PostCategory", "POST")); }
public void SetDetails(clsCategory prCategory) { _Category = prCategory; UpdateDisplay(); Show(); }
public void SetDetails(clsCategory prCategory) { _Category = prCategory; updateForm(); ShowDialog(); }
public async void refreshFormFromDB(string prCategoryName) { clsCategory lcCategory = await ServiceClient.GetCategoryAsync(prCategoryName); SetDetails(lcCategory); }
internal async static Task <string> InsertCategoryAsync(clsCategory _Category) { return(await InsertOrUpdateAsync(_Category, "http://localhost:60000/api/gallery/PostArtWork", "POST")); }
internal async static Task <string> UpdateCategoryAsync(clsCategory prCategory) { return(await InsertOrUpdateAsync(prCategory, "http://localhost:60064/api/inventory/PutCategory", "PUT")); }