protected IActionResult GetResponse(object result) { if (_notification != null && _notification.HasNotifications()) { return(BadRequest(_notification.GetNotifications().Select(n => n.Value))); } if (result == null) { return(Ok()); } return(Ok(result)); }
public bool IsValid() { return(!NotificationContext.HasNotifications()); }