Ejemplo n.º 1
0
 public HttpResponseMessage SaveInProgressEyeglassOrder(EyeglassOrderDetail detail)
 {
     try
     {
         AccessControl.VerifyUserAccessToPatient(detail.PatientId);
         return(this.Request.CreateResponse(
                    HttpStatusCode.OK,
                    this.eyeglassOrderIt2Manager.SaveInProgressEyeglassOrder(detail, this.companyId)));
     }
     catch (Exception ex)
     {
         var error = "SaveInProgressContactLensOrder(" + string.Format("{0}", detail.PatientId) + ")\n" + ex;
         return(HandleExceptions.LogExceptions(error, Logger, ex));
     }
 }
Ejemplo n.º 2
0
 public HttpResponseMessage SaveEyeglassOrder(EyeglassOrderDetail eyeglassOrder, int orderNumber)
 {
     try
     {
         int remakeMessageType;
         var savedOrderNumber = this.eyeglassOrderIt2Manager.SaveEyeglassOrder(
             eyeglassOrder,
             orderNumber,
             this.companyId,
             this.userId,
             out remakeMessageType);
         return(this.Request.CreateResponse(HttpStatusCode.OK, new { savedOrderNumber, remakeMessageType }));
     }
     catch (Exception ex)
     {
         var error = "SaveEyeglassOrder(" + eyeglassOrder.PatientId + ")\n" + ex;
         HandleExceptions.LogExceptions(error, Logger, ex);
         return(this.Request.CreateResponse(HttpStatusCode.ExpectationFailed));
     }
 }