Example #1
0
        internal int FindFirstOrganizationId(string orgName)
        {
            var queryOrgID = SqlQueryBuilder.GetOrgId(orgName, DBConnection);

            try
            {
                return((int)queryOrgID.ExecuteScalar());
            }
            catch (Exception ex) { return(-1); }
        }