Beispiel #1
0
        /// <summary>
        /// Returns the organisation name
        /// </summary>
        public string GetOrg(int orgID)
        {
            LightSpeedRepository repository = new LightSpeedRepository(GetAppSettings());

            Organisation _org;

            _org = repository.GetOrgByID(orgID);

            return(_org.OrgName);
        }
        /// <summary>
        /// Returns the organisation name
        /// </summary>
        public string GetOrg(int orgID)
        {
            string _orgname = "unknown";

            try
            {
                LightSpeedRepository repository = new LightSpeedRepository(GetAppSettings());
                Organisation         _org;
                _org     = repository.GetOrgByID(orgID);
                _orgname = _org.OrgName;
            }
            catch { }

            return(_orgname);
        }