Пример #1
0
 private static IHttpActionResult BadRequest(ValidationException exception)
 {
     return new BadRequestResult(exception);
 }
Пример #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="exception">The validation exception</param>
        public BadRequestResult(ValidationException exception)
        {
            exception.NotNull(nameof(exception));

            Exception = exception;
        }