protected ActionResult CustomResponse(object result = null) { if (OperationIsValid()) { return(Ok(new { success = true, data = result })); } return(BadRequest(new { success = false, errors = _notificador.GetNotificacoes().Select(m => m.Message) })); }