protected IActionResult CustomResponse(object result = default)
        {
            if (IsValid())
            {
                return(Ok(new SuccessResponse(result, _notificator.GetSuccessNotification())));
            }

            if (_notificator.HasNotification())
            {
                return(BadRequest(new ErrorResponse(
                                      StatusCodes.Status400BadRequest,
                                      _notificator.GetMessages())));
            }

            return(new ObjectResult(new ErrorResponse(
                                        StatusCodes.Status500InternalServerError,
                                        "Ocorreu um erro na sua requisição.")));
        }