/// <summary> /// Function to view all VoucherTypes based on parameter /// </summary> /// <param name="voucherTypeId"></param> /// <returns></returns> public VoucherTypeInfo VoucherTypeView(decimal voucherTypeId) { VoucherTypeInfo vouchertypeinfo = new VoucherTypeInfo(); try { vouchertypeinfo = spVoucherType.VoucherTypeView(voucherTypeId); } catch (Exception ex) { MessageBox.Show("VT7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(vouchertypeinfo); }