public IActionResult Post([FromBody] CustomerDto customerDto) { try { _customerApplicationService.create(customerDto); return(Ok(this.responseHandler.getOkCommandResponse("Customer created!", Constantes.HttpStatus.Created))); } catch (ArgumentException ex) { return(BadRequest(this.responseHandler.getAppCustomErrorResponse(ex.Message))); } catch (Exception ex) { return(StatusCode(Constantes.HttpStatus.ErrorServer, this.responseHandler.getAppExceptionResponse())); } }