/// <summary>Anies the given request.</summary>
        ///
        /// <exception cref="HttpError">Thrown when a HTTP error error condition occurs.</exception>
        ///
        /// <param name="request">The request.</param>
        ///
        /// <returns>An object.</returns>
        public object Any(HttpResults request)
		{
            if (request.Name == "Error")
                throw new HttpError(HttpStatusCode.NotFound, "Error NotFound");

            return new HttpResult(HttpStatusCode.NotFound, "Returned NotFound");
		}
Beispiel #2
0
        /// <summary>Anies the given request.</summary>
        ///
        /// <exception cref="HttpError">Thrown when a HTTP error error condition occurs.</exception>
        ///
        /// <param name="request">The request.</param>
        ///
        /// <returns>An object.</returns>
        public object Any(HttpResults request)
        {
            if (request.Name == "Error")
            {
                throw new HttpError(HttpStatusCode.NotFound, "Error NotFound");
            }

            return(new HttpResult(HttpStatusCode.NotFound, "Returned NotFound"));
        }