public static ThisEntity GetByCtid(string ctid)
        {
            ThisEntity entity = new ThisEntity();

            if (string.IsNullOrWhiteSpace(ctid))
            {
                return(entity);
            }

            return(EntityMgr.GetByCtid(ctid));
        }
        public bool Import(ThisEntity entity, ref SaveStatus status)
        {
            bool isValid = new EntityMgr().Save(entity, ref status);

            if (entity.Id > 0)
            {
                //update cache
                new CacheManager().PopulateEntityRelatedCaches(entity.RowId);

                //TODO - will need to update related elastic indices
                //	NOTE: not sure if there is an organization
                //new SearchPendingReindexManager().Add( CodesManager.ENTITY_TYPE_ORGANIZATION, entity.OrganizationId, 1, ref messages );
            }

            return(isValid);
        }