public HttpResponseMessage GetPatientNotesBySearchCriteria([FromUri] PatientNotesSearchCriteria searchCriteria) { try { AccessControl.VerifyUserAccessToPatient(searchCriteria.PatientId); var noteTypes = GetNoteTypes(); IList <PatientNotesSearchResults> results = this.it2Business.GetSearchResults(searchCriteria); var resources = this.GetResources(results); return(this.Request.CreateResponse(HttpStatusCode.OK, new PatientNotes { NoteTypes = noteTypes, Results = results, Resources = resources })); } catch (HttpResponseException) { throw; } catch (NHibernate.ObjectNotFoundException ex) { Logger.Error("GetPatientNotesBySearchCriteria: " + ex); return(this.Request.CreateResponse(HttpStatusCode.NotFound, "Note Not Found.")); } catch (Exception ex) { var msg = "GetPatientNotesBySearchCriteria: " + ex; return(HandleExceptions.LogExceptions(msg, Logger, ex)); } }
/// <summary>The get eye glasses rx by id.</summary> /// <param name="officeNumber">The office number.</param> /// <param name="patientId">The patient Id.</param> /// <param name="examId">The exam Id.</param> /// <param name="isRecheck"></param> /// <returns>The <see cref="PatientEyeGlassesRx"/>.ObjectNotFoundException</returns> public HttpResponseMessage GetEyeGlassesRxById(string officeNumber, int patientId, int examId, bool isRecheck) { try { AccessControl.VerifyUserAccessToPatient(patientId); if (patientId <= 0) { return(this.Request.CreateResponse(HttpStatusCode.NotFound, "Patient not found.")); } var result = this.eyeGlassesManager.GetEyeGlassesRxById(officeNumber, patientId, examId, isRecheck); if (result != null) { var requestMessage = new List <KeyValuePair <int, DateTime> > { new KeyValuePair <int, DateTime>(examId, DateTime.UtcNow) }; MessageTracking.SignalAlSupportTracking(requestMessage, "Viewed"); } return(result != null?this.Request.CreateResponse(HttpStatusCode.OK, result) : this.Request.CreateResponse(HttpStatusCode.NoContent)); } catch (Exception ex) { var error = "GetEyeGlassesRxById(examId=" + examId + ", patientId=" + patientId + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage SaveTodayApptPatient(string officeNumber, int userId, Model.QuickList patientAppointment) { var message = "SaveTodayApptPatient(OfficeNumber=" + officeNumber + ", UserId=" + userId + ")\n"; if (!AccessControl.VerifyCorrectOffice(officeNumber, message)) { return(Request.CreateResponse(HttpStatusCode.Forbidden)); } try { this.quickListManager.SaveTodayApptPatient( officeNumber, userId, (int)patientAppointment.AppointmentId, patientAppointment.PatientId, patientAppointment.SelectedLocationOrStatus); var quicklistSummaries = this.quickListManager.GetPatientQuickList(officeNumber); return(Request.CreateResponse(HttpStatusCode.OK, new { quicklistSummaries })); } catch (Exception ex) { var msg = $"SaveTodayApptPatient(officeNumber = {officeNumber}, userId = {userId}, locationOrStatus= {patientAppointment.SelectedLocationOrStatus}, {ex}"; return(HandleExceptions.LogExceptions(msg, Logger, ex)); } }
public HttpResponseMessage SaveDailyClosing(DailyClosing closingDetails) { try { return(Request.CreateResponse(HttpStatusCode.OK, this.it2Business.SaveDailyClosing(closingDetails, closingDetails.OfficeNumber, closingDetails.UserId))); } catch (NHibernate.Exceptions.GenericADOException genericAdoException) { var msg = genericAdoException.InnerException; if (msg.ToString().Contains("Violation of UNIQUE KEY constraint 'AK_DayClose_OfficeNum_TransDate'")) { return(Request.CreateResponse(HttpStatusCode.OK, this.it2Business.HandleDuplicateDayClosingTransactionDate(closingDetails.OfficeNumber))); } var error = string.Format("GetDailyClosing(postingDate = {0}, {1}, {2}", closingDetails.PostingDate, "\n", genericAdoException); return(HandleExceptions.LogExceptions(error, Logger, genericAdoException)); } catch (ObjectNotFoundException e) { Logger.Error(string.Format("SaveDailyClosing(postingDate = {0}, {1}, {2}", closingDetails.PostingDate, "\n", e)); return(Request.CreateResponse(HttpStatusCode.NotFound)); } catch (Exception ex) { var msg = string.Format("GetDailyClosing(postingDate = {0}, {1}, {2}", closingDetails.PostingDate, "\n", ex); return(HandleExceptions.LogExceptions(msg, Logger, ex)); } }
/// <summary>The get all documents.</summary> /// <param name="patientId">The patient id.</param> /// <returns>The <see cref="string"/>.</returns> public HttpResponseMessage GetAllDocuments(int patientId) { try { AccessControl.VerifyUserAccessToPatient(patientId); var documentlistlite = this.it2Business.GetPatientDocumentsLite(patientId); var documents = new List <Document>(); if (documentlistlite.Count > 0) { documents = (from item in documentlistlite orderby item.CreatedDate, item._EmployeeName, item.DocumentType descending select new Document { UserId = 0, PatientId = patientId, Id = item.ID, Date = item.CreatedDate.ToString("MM/dd/yyyy"), EnteredBy = item.Employee.EmployeeName, DocumentName = item.ImageName, DocumentType = item.DocumentType, Comments = item.Comments, FilePath = string.Empty, DocumentFormat = item.DocumentFormat.ToString() }).ToList(); } return(Request.CreateResponse(HttpStatusCode.OK, documents)); } catch (Exception ex) { var msg = string.Format("GetAllDocuments(patientid = {0} {1} {2}", patientId, "\n", ex); return(HandleExceptions.LogExceptions(msg, Logger, ex)); } }
/// <summary> /// The get. /// </summary> /// <param name="officeNumber"> /// The office Number. /// </param> /// <param name="userId"> /// The user Id. /// </param> /// <returns> /// The <see cref="HttpResponseMessage"/>. /// </returns> public HttpResponseMessage GetTodayPatients(string officeNumber, int userId) { var message = "GetTodayPatients( officeNumber=" + officeNumber + ", userId=" + userId + ")\n"; if (!AccessControl.VerifyCorrectOffice(officeNumber, message)) { return(Request.CreateResponse(HttpStatusCode.Forbidden)); } try { var quicklistSummaries = this.quickListManager.GetPatientQuickList(officeNumber); var quicklistLocations = this.quickListManager.GetPatientLocations(officeNumber); quicklistLocations.Insert(0, new IT2.Core.PatientLocations() { LocationId = 0, Description = "Select", OfficeNum = officeNumber, IsLocationInUse = false }); return(Request.CreateResponse(HttpStatusCode.OK, new { quicklistSummaries, quicklistLocations })); } catch (Exception ex) { var msg = $"GetTodayPatients(officeNumber = {officeNumber}, userId = {userId}, {ex}"; return(HandleExceptions.LogExceptions(msg, Logger, ex)); } }
public HttpResponseMessage Post(string officeNumber, [FromBody] MarketingRecall marketingRecall) { var recallIt2Manager = new RecallReportsIt2Manager(); try { var isProcessing = recallIt2Manager.ValidateRecallReport(officeNumber, marketingRecall); if (isProcessing) { const string ValidationString = "A report for this recall type and date range has already been generated. Select a different date range."; return(this.Request.CreateResponse(HttpStatusCode.BadRequest, new { validationmessage = ValidationString })); } var recall = recallIt2Manager.RunMarketingRecallReport(officeNumber, marketingRecall); return(this.Request.CreateResponse(HttpStatusCode.OK, recall)); } catch (ObjectNotFoundException) { return(this.Request.CreateResponse(HttpStatusCode.NotFound)); } catch (Exception ex) { var msg = string.Format("Post(id = {0}, {1}, {2}", marketingRecall.Id, "\n", ex); return(HandleExceptions.LogExceptions(msg, Logger, ex)); } }
public HttpResponseMessage GetPatientExamDetail(int patientId, int orderId, int examId) { try { AccessControl.VerifyPatientDataAccess(patientId, orderId, examId); AccessControl.VerifyUserAccessToPatient(patientId); PatientExamDetail patientExamDetail = this.patientExamsIt2Manager.GetNewPatientExamDetail(patientId, this.companyId, examId, orderId); if (patientExamDetail != null) { var data = new List <KeyValuePair <int, DateTime> > { new KeyValuePair <int, DateTime>(patientExamDetail.ExamId, DateTime.UtcNow) }; MessageTracking.SignalAlSupportTracking(data, "Viewed"); } return(this.Request.CreateResponse(HttpStatusCode.OK, patientExamDetail)); } catch (Exception ex) { var error = "GetPatientExamDetail(" + string.Format("{0}", patientId) + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
/// <summary> /// The save patient insurances. /// </summary> /// <param name="insurances"> /// The insurances. /// </param> /// <param name="patientId"> /// The patient Id. /// </param> /// <returns>No Content</returns> public HttpResponseMessage SavePatientInsurances(List <PatientInsurance> insurances, int patientId) { try { AccessControl.VerifyUserAccessToPatient(patientId); var alslInsurances = new List <PatientInsuranceAlsl>(); if (insurances != null) { alslInsurances.AddRange(insurances.Select(item => new PatientInsuranceAlsl { PatientId = patientId, PatientInsuranceId = item.Id, IsActive = item.IsActive, IsPrimaryInsurance = item.IsPrimaryInsurance })); } PatientManager.SavePatientInsuranceAlsl(alslInsurances); new PatientRelationshipsIt2Manager().SaveDependentInsuranceExtensions(patientId, alslInsurances); return(Request.CreateResponse(HttpStatusCode.NoContent)); } catch (Exception ex) { var error = string.Format("SavePatientInsurances(patientId = {0} {1} {2}", patientId, ")\n", ex); return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage GetItemPrice(int itemId) { string price; bool allowZeroPrice; try { double priceN = 0; price = this.patientExamsIt2Manager.GetItemPriceByOffice(itemId, this.practiceLocationId, out priceN); } catch (Exception ex) { var error = "GetItemPriceByCompanyId(" + itemId + ")\n" + ex; HandleExceptions.LogExceptions(error, Logger, ex); return(this.Request.CreateResponse(HttpStatusCode.ExpectationFailed)); } try { allowZeroPrice = this.patientExamsIt2Manager.GetItemAllowZeroPrice(itemId, this.companyId); } catch (Exception ex) { var error = "GetItemAllowZeroPrice(" + itemId + ")\n" + ex; HandleExceptions.LogExceptions(error, Logger, ex); return(this.Request.CreateResponse(HttpStatusCode.ExpectationFailed)); } return(this.Request.CreateResponse(HttpStatusCode.OK, new { price, allowZeroPrice })); }
// GET api/holiday/5 /// <summary> /// The get. /// </summary> /// <param name="id"> /// The id. /// </param> /// <returns> /// Holiday />. /// </returns> public HttpResponseMessage Get(int id) { try { var officeHoliday = this.it2Business.GetHolidayById(id); if (officeHoliday == null) { return(Request.CreateResponse(HttpStatusCode.NotFound, "Holiday not found.")); } AccessControl.VerifyUserAccessToOffice(officeHoliday.OfficeNum); var holiday = new Holiday(officeHoliday.ID, officeHoliday.Description, officeHoliday.HolidayDate); return(Request.CreateResponse(HttpStatusCode.OK, holiday)); } catch (NHibernate.ObjectNotFoundException ex) { Logger.Error(string.Format("Get(id = {0} {1} {2}", id, "\n", ex)); return(Request.CreateResponse(HttpStatusCode.NotFound)); } catch (Exception ex) { var msg = string.Format("Get(id = {0} {1} {2}", id, "\n", ex); return(HandleExceptions.LogExceptions(msg, Logger, ex)); } }
/// <summary> /// The post. /// </summary> /// <param name="officeNumber"> /// The office number. /// </param> /// <param name="holiday"> /// The holiday. /// </param> /// <returns> /// The <see cref="HttpResponseMessage"/>. /// </returns> public HttpResponseMessage Post(string officeNumber, Holiday holiday) { AccessControl.VerifyUserAccessToOffice(officeNumber); if (string.IsNullOrEmpty(officeNumber) || string.IsNullOrEmpty(holiday.Description)) { return(Request.CreateResponse(HttpStatusCode.PreconditionFailed, "Invalid Holiday..!!!")); } try { var officeHoliday = new OfficeHoliday { HolidayDate = DateTime.Parse(holiday.Date), OfficeNum = officeNumber, Description = holiday.Description }; // Check for duplicate entries IList <OfficeHoliday> existingHolidays = this.it2Business.GetAllHolidaysForOffice(officeNumber); IList <OfficeHoliday> results = existingHolidays.Where(d => d.HolidayDate == officeHoliday.HolidayDate).ToList(); if (results.Count == 0) { officeHoliday.OfficeNum = officeNumber; this.it2Business.SaveHoliday(officeHoliday); var response = Request.CreateResponse(HttpStatusCode.OK, "Holiday Created"); return(response); } return(Request.CreateResponse(HttpStatusCode.BadRequest, "Holiday Already Exists")); } catch (Exception ex) { var msg = string.Format("Post(officeNumber = {0} {1} {2}", officeNumber, "\n", ex); return(HandleExceptions.LogExceptions(msg, Logger, ex)); } }
public HttpResponseMessage GetContactLensRxById(string officeNumber, int patientId, int examId, bool isRecheck) { try { AccessControl.VerifyUserAccessToPatient(patientId); PatientContactLensRxLite patientContactLensRx = this.it2Soft.GetContactLensRxById( officeNumber, patientId, examId, isRecheck); if (patientContactLensRx != null) { var requestMessage = new List <KeyValuePair <int, DateTime> > { new KeyValuePair <int, DateTime>(examId, DateTime.UtcNow) }; MessageTracking.SignalAlSupportTracking(requestMessage, "Viewed"); } return(patientContactLensRx != null?this.Request.CreateResponse(HttpStatusCode.OK, patientContactLensRx) : this.Request.CreateResponse(HttpStatusCode.NoContent)); } catch (Exception ex) { var error = "GetContactLensRxById(examId=" + examId + ", patientId=" + patientId + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
/// <summary> /// The get. /// </summary> /// <param name="officeNumber"> /// The office number. /// </param> /// <param name="report"> /// The report. /// </param> /// <returns> /// The <see cref="SalesReportCriteria"/>. /// </returns> public HttpResponseMessage Get(string officeNumber, string report) { try { AccessControl.VerifyUserAccessToOffice(officeNumber); } catch (Exception ex) { var message = ex.Message; const string ValidationString = "You do not have security permission to access this area.<br/><br/> " + "Please contact your Office Manager or Office Administrator if you believe this is an error."; return(this.Request.CreateResponse(HttpStatusCode.Forbidden, new { validationmessage = ValidationString })); } try { var user = new AuthorizationTicketHelper().GetUserInfo(); var officeEmployee = this.employeeServices.GetOfficeEmployeeByUserId(user.Id); return(Request.CreateResponse(HttpStatusCode.OK, this.it2Manager.GetReportCriteria(officeNumber, report, officeEmployee))); } catch (Exception ex) { var msg = string.Format("Get(officeNumber = {0}, {1}, {2}", officeNumber, "\n", ex); return(HandleExceptions.LogExceptions(msg, Logger, ex)); } }
/// <summary> /// The delete. /// </summary> /// <param name="patientId"> Patient ID </param> /// <param name="id"> /// The id. /// </param> /// <returns> /// The <see cref="HttpResponseMessage"/>. /// </returns> public HttpResponseMessage Delete(int patientId, int id) { try { AccessControl.VerifyUserAccessToPatient(patientId); if (id != 0) { // Delete Insurance // Insurance can not be deleted if it has been used in a previous transaction or claim if (this.patientInsuranceManager.CanDeletePatientInsurance(id)) { var relationshipsIt2Manager = new PatientRelationshipsIt2Manager(); var matchingDependentInsurances = relationshipsIt2Manager.GetMatchingDependentInsurances(patientId, id); //// Delete Dependents Insurance if (matchingDependentInsurances != null && matchingDependentInsurances.Any()) { foreach (var dependentInsurance in matchingDependentInsurances) { if (this.patientInsuranceManager.CanDeletePatientInsurance(dependentInsurance.ID)) { PatientManager.DeletePatientInsuranceAlsl(dependentInsurance.ID); this.patientInsuranceManager.DeletePatientInsuranceByPatientInsuranceId(dependentInsurance.PatientID.GetValueOrDefault(), dependentInsurance.ID); } else { //// Inactivate dependent insurance as it can't be deleted var dependentPatientInsuranceExtension = PatientManager.GetPatientInsuranceExtension(dependentInsurance.PatientID.GetValueOrDefault(), dependentInsurance.ID); dependentPatientInsuranceExtension.IsActive = false; var alslInsurances = new List <PatientInsuranceAlsl> { dependentPatientInsuranceExtension }; PatientManager.SavePatientInsuranceAlsl(alslInsurances); } } } //// Delete Parent Insurance PatientManager.DeletePatientInsuranceAlsl(id); this.patientInsuranceManager.DeletePatientInsuranceByPatientInsuranceId(patientId, id); return(new HttpResponseMessage(HttpStatusCode.NoContent)); } const string Message = "The insurance carrier/plan has associated eligibilities and cannot be deleted. Instead of deleting the insurance carrier/plan, you can inactivate it."; return(Request.CreateResponse(HttpStatusCode.Conflict, Message)); } return(Request.CreateResponse(HttpStatusCode.NotFound)); } catch (Exception ex) { var error = string.Format("Delete({0}, {1}{2} {3}", patientId, id, ")\n", ex); return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage GetSchedulerException(int officeNum, int employeeId, int exceptionId) { try { return(Request.CreateResponse(HttpStatusCode.OK, this.exceptionsManager.GetSchedulerException(officeNum, employeeId, exceptionId))); } catch (Exception ex) { var error = "GetSchedulerException(exceptionId=" + exceptionId + ", employeeId=" + employeeId + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage SaveContactLensPrice(ContactLensPrice vm) { try { return(this.Request.CreateResponse(HttpStatusCode.OK, this.contactLensOrderIt2Manager.SaveContactLensPrice(vm, this.companyId))); } catch (Exception ex) { var error = "SaveContactLensPrice" + string.Format("{0}", "SaveContactLensPrice") + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage SaveSchedulerException(ResourceException resourceException) { try { return(Request.CreateResponse(HttpStatusCode.OK, this.exceptionsManager.SaveException(resourceException))); } catch (Exception ex) { var error = "ValidateExceptionDeleteById(exceptionId=" + resourceException.Id + "\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage ValidateExceptionDeleteById(int exceptionId, bool allSeries) { try { return(Request.CreateResponse(HttpStatusCode.OK, this.exceptionsManager.ValidateExceptionDelete(exceptionId, allSeries))); } catch (Exception ex) { var error = "ValidateExceptionDeleteById(exceptionId=" + exceptionId + "\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage GetUnknownCarrierInfoVm(int patientId, int planId) { try { return(Request.CreateResponse(HttpStatusCode.OK, this.patientInsuranceManager.GetUnknownCarrierInfoVm(patientId, planId))); } catch (Exception ex) { var error = "GetUnknownCarrierInfoVm(" + string.Format("{0}, {1}", patientId, planId) + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
/// <summary> /// The get item contact lens sphere by criteria. /// </summary> /// <param name="powerid"> /// The power id. /// </param> /// <param name="clcolorcode"> /// The color code. /// </param> /// <returns> /// The look up list /// </returns> public HttpResponseMessage GetItemContactLensSphereByCriteria(string powerid, string clcolorcode) { try { List <Lookup> result = this.it2Soft.GetItemContactLensSphereByCriteria(powerid, clcolorcode); return(result != null?this.Request.CreateResponse(HttpStatusCode.OK, result) : this.Request.CreateResponse(HttpStatusCode.NoContent)); } catch (Exception ex) { var error = "GetItemContactLensSphereByCriteria(powerId = " + powerid + "clcolorcode = " + clcolorcode + " )\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
/// <summary>The get patient insurances.</summary> /// <param name="patientId">The patient id.</param> /// <param name="activeOnly">The active Only.</param> /// <returns>The Insurance List.</returns> public HttpResponseMessage GetPatientInsurances(int patientId, bool activeOnly) { try { AccessControl.VerifyUserAccessToPatient(patientId); return(Request.CreateResponse(HttpStatusCode.OK, this.patientInsuranceManager.GetPatientInsurances(patientId, activeOnly))); } catch (Exception ex) { var error = "GetPatientInsurances(" + string.Format("{0}, {1}", patientId, activeOnly) + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage GetContactLensPrice(int patientId, int itemIdLeft, int itemIdRight) { try { AccessControl.VerifyUserAccessToPatient(patientId); return(this.Request.CreateResponse(HttpStatusCode.OK, this.contactLensOrderIt2Manager.GetContactLensPrice(this.companyId, itemIdLeft, itemIdRight))); } catch (Exception ex) { var error = "GetContactLensPrice(" + string.Format("{0}", patientId) + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage GetPatientWipOrdersList(int id) { try { AccessControl.VerifyUserAccessToPatient(id); return(this.Request.CreateResponse(HttpStatusCode.OK, this.manager.GetPatientInProgressOrderList(id, this.companyId, this.officeNum))); } catch (Exception ex) { var error = "GetPatientWipOrders(" + string.Format("{0}", id) + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage GetPatientEhrExams(int patientId) { try { AccessControl.VerifyUserAccessToPatient(patientId); return(this.Request.CreateResponse(HttpStatusCode.OK, this.patientExamsIt2Manager.GetUnusedPatientEhrExams(patientId))); } catch (Exception ex) { var error = "GetPatientExams(" + string.Format("{0}", patientId) + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage DeletePatientIpOrder(string resourceId, int patientId) { try { AccessControl.VerifyUserAccessToPatient(patientId); return(this.Request.CreateResponse(HttpStatusCode.OK, this.manager.DeleteIpOrder(patientId, this.companyId, resourceId))); } catch (Exception ex) { var error = "DeleteIpOrder(" + string.Format("{0}", resourceId) + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
/// <summary>The get.</summary> /// <param name="patientId">The patient id.</param> /// <returns>The <see cref="IEnumerable"/>.</returns> public HttpResponseMessage Get(int patientId) { try { AccessControl.VerifyUserAccessToPatient(patientId); return(Request.CreateResponse(HttpStatusCode.OK, this.it2Business.GetAddresses(patientId))); } catch (Exception ex) { var msg = string.Format("Get(patientid = {0} {1} {2}", patientId, "\n", ex); return(HandleExceptions.LogExceptions(msg, Logger, ex)); } }
/// <summary> /// The get item contact lens add power by criteria. /// </summary> /// <param name="powerid"> /// The power id. /// </param> /// <param name="clcolorcode"> /// The color code. /// </param> /// <returns> /// The lookup /// </returns> public HttpResponseMessage GetItemContactLensAddPowerByCriteria(string powerid, string clcolorcode) { try { List <Lookup> result = this.it2Soft.GetItemContactLensAddPowerByCriteria(powerid, clcolorcode); return(result != null?this.Request.CreateResponse(HttpStatusCode.OK, result) : this.Request.CreateResponse(HttpStatusCode.NoContent)); } catch (Exception ex) { var error = string.Format("GetItemContactLensAddPowerByCriteria(powerId = {0}, clcolorcode = {1} {2} {3} )", powerid, clcolorcode, "\n", ex); return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage GetInProgressEyeglassOrder(int patientId, string awsResourceId) { try { AccessControl.VerifyUserAccessToPatient(patientId); return(this.Request.CreateResponse(HttpStatusCode.OK, this.eyeglassOrderIt2Manager.GetInProgressEyeglassOrder(this.companyId, patientId, awsResourceId, this.officeNumber, this.userId))); } catch (Exception ex) { var error = "GetInProgressContactLensOrder(" + string.Format("{0}", patientId) + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }
public HttpResponseMessage GetEyeglassLensAttributes(int itemId) { try { var lensAttributes = this.eyeglassLensIt2Manager.GetLensAttributesToPrice(itemId, this.companyId); return(this.Request.CreateResponse(HttpStatusCode.OK, lensAttributes)); } catch (Exception ex) { var error = "GetEyeglassLensAttributes(" + itemId + ")\n" + ex; return(HandleExceptions.LogExceptions(error, Logger, ex)); } }