Example #1
0
        public async Task <IActionResult> GetAllByIdPessoa(int idPessoa)
        {
            try {
                var getAllPessoa = await _service.GetAllByIdPessoa(idPessoa);

                return(Ok(getAllPessoa));
            }
            catch (ArgumentException e) {
                return(this.StatusCode(StatusCodes.Status500InternalServerError, $"{e.Message}"));
            }
        }