private ICollection <OrderDetails> GetOrderDetailsFromIds(ICollection <int> orderDetailsIds) { var pipeline = new Pipeline <OrderDetails>(); pipeline.Register(_filterFactory.MakeOrderDetailsForIdsFilter(orderDetailsIds)); List <OrderDetails> results = UnitOfWork.OrderDetails.Find(pipeline).ToList(); if (results.Count != orderDetailsIds.Count) { throw new EntityNotFoundException(typeof(OrderDetails)); } return(results); }