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));
        }
Пример #2
0
 public bool IsValid()
 {
     return(!NotificationContext.HasNotifications());
 }