Пример #1
0
        public HttpResponseMessage Post(string orgId, ReceiveErrorRequest request)
        {
            try
            {
                SetOrganisation(orgId);
                Auditor.Trace(GetType(), "Started...");
                var response = _receiveErrorCommand.Invoke(request);
                Session.Commit();

                return(Request.CreateResponse(HttpStatusCode.OK, response));
            }
            catch (Exception e)
            {
                Auditor.Error(GetType(), e);
                throw;
            }
        }
Пример #2
0
        public HttpResponseMessage Post(string orgId, ReprocessIssueErrorsRequest request)
        {
            try
            {
                SetOrganisation(orgId);

                Auditor.Trace(GetType(), "Received reprocess issue errors request, IssueId:={0}, ", request.IssueId);
                var response = _reprocessIssueErrorsCommand.Invoke(request);
                Session.Commit();

                return(Request.CreateResponse(HttpStatusCode.OK, response));
            }
            catch (Exception e)
            {
                Auditor.Error(GetType(), e);
                throw;
            }
        }