/// <summary> /// Function to check existence of Voucher based on parameters /// </summary> /// <param name="strvoucherTypeName"></param> /// <param name="decvoucherTypeId"></param> /// <returns></returns> public bool VoucherTypeCheckExistence(string strvoucherTypeName, decimal decvoucherTypeId) { bool isExists = true; try { isExists = spVoucherType.VoucherTypeCheckExistence(strvoucherTypeName, decvoucherTypeId); } catch (Exception ex) { MessageBox.Show("VT11:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(isExists); }