protected ActionResult CustomResponse(object result = null) { if (ValidOperation()) { return(Ok(new { success = true, data = result })); } return(BadRequest(new { success = false, errors = _notificator.ObtainNotifications().Select(n => n.Mensagem) })); }