/* * 휴폐업조회 조회단가를 확인합니다. * - https://docs.popbill.com/closedown/dotnetcore/api#GetUnitCost */ public IActionResult GetUnitCost() { try { var result = _closedownService.GetUnitCost(corpNum); return(View("Result", result)); } catch (PopbillException pe) { return(View("Exception", pe)); } }
private void btnUnitCost_Click(object sender, EventArgs e) { try { float unitCost = closedownService.GetUnitCost(txtCorpNum.Text); MessageBox.Show(unitCost.ToString()); } catch (PopbillException ex) { MessageBox.Show(ex.code.ToString() + " | " + ex.Message); } }