/// <summary> /// Function for insert values and return id /// </summary> /// <param name="taxinfo"></param> /// <returns></returns> public decimal TaxAddWithIdentity(TaxInfo infoTax) { decimal decTaxId = 0; try { decTaxId = spTax.TaxAddWithIdentity(infoTax); } catch (Exception ex) { MessageBox.Show("TBLL1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(decTaxId); }