Ejemplo n.º 1
0
        /// <summary>
        /// Finds the entity.
        /// </summary>
        /// <param name="spec"> </param>
        /// <returns></returns>
        public TEntity FindEntity(object spec)
        {
            var aggregateRoot = Factory.FindEntity(spec);
            var findEntity    = aggregateRoot != null ? aggregateRoot.Root : default(TEntity);

            return(findEntity);
        }