public void Handle(GetProducts command) { var products = _DomainRepository.FindAll <Product>(p => command.ProductIds.Contains(p.Id)) .Select(p => new Sample.DTO.Project { Id = p.Id, Name = p.Name, Count = p.Count }) .ToList(); _CommandContext.Reply = products; }