예제 #1
0
        public (OperationStatus status, Film value) GetByTitleAndYear(string title, short year)
        {
            ISpecification <Film> spec = new FilmByTitleAndYear(title, year);

            var(status, value) = List(spec);
            var f = value.SingleOrDefault();

            return(status, f);
        }
예제 #2
0
        public Film GetByTitleAndYear(string title, short year)
        {
            var spec = new FilmByTitleAndYear(title, year);

            return(List(spec).FirstOrDefault());
        }