Exemplo n.º 1
0
        public async Task <IActionResult> Find([FromRoute] SearchPeopleQuery criteria)
        {
            var result = await _mediator.Send(criteria);

            if (result.Count == 0)
            {
                return(NotFound());
            }

            return(Ok(result));
        }
Exemplo n.º 2
0
 public Task <List <Person> > Handle(SearchPeopleQuery request, CancellationToken cancellationToken)
 {
     throw new System.NotImplementedException();
 }