protected ActionResult CustomResponse(object result = null) { if (!_notificator.HasNotification()) { return(Ok(new { success = true, data = result })); } return(BadRequest(new { success = false, error = _notificator.GetNotifications().Select(n => n.Message) })); }
protected bool OperacaoValida() { return(!_notificator.HasNotification()); }
public bool OperacaoValida() { return(!_notificator.HasNotification()); }
protected bool IsValid() => !_notificator.HasNotification();
protected bool ValidOperation() { return(!_notificator.HasNotification()); }
protected bool PossuiNotificacao() { return(_notificator.HasNotification()); }
private bool IsValidaOperation() { return(!_notificator.HasNotification()); }