Example #1
0
        protected new IActionResult Response(object result = null)
        {
            if (OperacaoValida())
            {
                return(Ok(new
                {
                    success = true,
                    data = result
                }));
            }
            var notifications = _bancoAppService.ObterNotificacoes();

            return(BadRequest(new
            {
                success = false,
                errors = notifications.Select(n => n.Value)
            }));
        }