/// <summary> /// Function to insert values to table and return id /// </summary> /// <param name="vouchertypeinfo"></param> /// <returns></returns> public decimal VoucherTypeAddWithIdentity(VoucherTypeInfo vouchertypeinfo) { decimal decVoucherTypeId = 0; try { decVoucherTypeId = spVoucherType.VoucherTypeAddWithIdentity(vouchertypeinfo); } catch (Exception ex) { MessageBox.Show("VT14:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(decVoucherTypeId); }