예제 #1
0
        /// <summary>
        /// Finds the entity.
        /// </summary>
        /// <param name="spec">The spec.</param>
        /// <returns></returns>
        public AggregateRoot <TEntity, TId> FindEntity(object spec)
        {
            var entityEventSource = _repository.FindEntity(spec);

            return(entityEventSource != null?CreateAggregateRoot(entityEventSource.Id, entityEventSource) : null);
        }