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}"));
        }