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