コード例 #1
0
ファイル: EnderecoController.cs プロジェクト: Deyvison1/BCD
        public async Task <IActionResult> GetByCepOrBairro(string search)
        {
            try
            {
                var getByCepOrBairroEndereco = await _service.GetBySearch(search);

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