public decimal CompanyGetIdIfSingleCompany() { CompanySP spCompany = new CompanySP(); decimal decCompanyId = 0; try { decCompanyId = spCompany.CompanyGetIdIfSingleCompany(); } catch (Exception ex) { MessageBox.Show("CB:9" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(decCompanyId); }