public async Task <IActionResult> GetAll(int id) { try { var getByIdConta = await _service.GetById(id); return(Ok(getByIdConta)); } catch (NotFoundException e) { return(this.StatusCode(StatusCodes.Status404NotFound, $"{e.Message}")); } catch (ArgumentException e) { return(this.StatusCode(StatusCodes.Status500InternalServerError, $"{e.Message}")); } }