public IActionResult Delete(int CustomerId) { try { _customerApplicationService.deleted(CustomerId); return(Ok(this.responseHandler.getOkCommandResponse("Customer deleted!", Constantes.HttpStatus.Success))); } catch (ArgumentException ex) { return(BadRequest(this.responseHandler.getAppCustomErrorResponse(ex.Message))); } catch (Exception ex) { return(StatusCode(Constantes.HttpStatus.ErrorServer, this.responseHandler.getAppExceptionResponse())); } }