Exemplo n.º 1
0
        public static ThisEntity GetByCtid(string ctid)
        {
            ThisEntity entity = new ThisEntity();

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

            return(EntityMgr.GetByCtid(ctid));
        }
Exemplo n.º 2
0
        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
                new SearchPendingReindexManager().Add(CodesManager.ENTITY_TYPE_ORGANIZATION, entity.OrganizationId, 1, ref messages);
            }

            return(isValid);
        }