Ejemplo n.º 1
0
        public Activation GetById(Guid id)
        {
            ActivationIdSpecification specification = new ActivationIdSpecification(id);

            return(_dbSet
                   .AsNoTracking()
                   .FirstOrDefault(specification.ToExpression()));
        }
Ejemplo n.º 2
0
        public Activation GetById(Guid id)
        {
            ActivationIdSpecification spec = new ActivationIdSpecification(id);

            return(_activations.AsQueryable().FirstOrDefault(spec.ToExpression()));
        }