public static void GetEnterprise(long id) { var enterpriseRequest = new EnterpriseRequestHandler(); var resp = enterpriseRequest.DeleteEnterprise(id).Result; Console.WriteLine(resp); }
public async static void DeleteEnterprise(long id) { try { var enterpriseRequest = new EnterpriseRequestHandler(); Console.WriteLine(await enterpriseRequest.DeleteEnterprise(id)); } catch (Exception ex) { Console.WriteLine(ex.Message); } }