示例#1
0
        private ICollection <PlatformType> GetPlatformTypesFromIds(ICollection <int> platformTypeIds)
        {
            var pipeline = new Pipeline <PlatformType>();

            pipeline.Register(_filterFactory.MakePlatformTypesForIdsFilter(platformTypeIds));

            List <PlatformType> results = UnitOfWork.PlatformTypes.Find(pipeline).ToList();

            if (results.Count != platformTypeIds.Count)
            {
                throw new EntityNotFoundException(typeof(PlatformType));
            }

            return(results);
        }