public IActionResult Get([FromQuery] string firstName, string last_name) { var person = _pessoa.FindByName(firstName, last_name); if (person == null) { return(NotFound()); } return(Ok(person)); }
public IActionResult GetPessoaByName([FromQuery] String firstname, [FromQuery] string lastname) { var result = _business.FindByName(firstname, lastname); if (result == null || (result != null && result.Count == 0)) { return(NotFound()); } result.ForEach(r => GerarLinks(r)); return(Ok(result)); }
public IActionResult GetByName([FromQuery] string firstName, string lastName) { return(Ok(_pessoaBusiness.FindByName(firstName, lastName))); }