コード例 #1
0
        public override void Execute()
        {
            var persons = PersonStore.Get()
                          .Where(p =>
                                 p.Id.ToString() == Term ||
                                 p.Name.Contains(Term, StringComparison.InvariantCultureIgnoreCase) ||
                                 p.Nationality.Contains(Term, StringComparison.InvariantCultureIgnoreCase)
                                 )
                          .ToList();

            Result = new GetPersonResult(persons);
        }