Example #1
0
        public BlogStory Find(FBS.Domain.Specifications.ISpecification <BlogStory> specification)
        {
            BlogStory story = null;

            try
            {
                this._storys.SingleOrDefault(specification.GetExpression().Compile());
            }
            catch (InvalidOperationException) {}

            return(story);
        }
Example #2
0
 public IList <BlogStory> FindAll(FBS.Domain.Specifications.ISpecification <BlogStory> specification)
 {
     return(this._storys.TakeWhile(specification.GetExpression().Compile()).ToList());
 }
Example #3
0
 public bool Exists(FBS.Domain.Specifications.ISpecification <BlogStory> specification)
 {
     return(this._storys.Any(specification.GetExpression().Compile()));
 }