コード例 #1
0
        public HttpResponseMessage Post(ErrorInputModel errorMessage)
        {
            ClientErrorException ex = new ClientErrorException(errorMessage.ToString());

            ErrorSignal signal = ErrorSignal.FromCurrentContext();
            signal.Raise(ex);

            return Request.CreateResponse(HttpStatusCode.OK, "{success:true}");
        }
コード例 #2
0
        public HttpResponseMessage Post(ErrorInputModel errorMessage)
        {
            ClientErrorException ex = new ClientErrorException(errorMessage.ToString());

            ErrorSignal signal = ErrorSignal.FromCurrentContext();

            signal.Raise(ex);

            return(Request.CreateResponse(HttpStatusCode.OK, "{success:true}"));
        }