/// <summary> /// Creator: Thomas Dupuy /// Created: 2020/04/12 /// Approver: Michael Thompson /// This method retrieves an appointment by its id /// </summary> /// <remarks> /// Updater: Mohamed Elamin /// Updated: 2020/04/20 /// Update: I Added param, returns tags for the comments. And updated date format. /// </remarks> /// <param name="id"></param> /// <returns> An appointment by appointment ID</returns> public AppointmentLocationVM RetrieveAppointmentByID(int id) { try { return(_appointmentAccessor.SelectAppointmentByID(id)); } catch (Exception ex) { throw new ApplicationException("Data not found.", ex); } }
/// <summary author="Wes Richardson" created="2019/03/07"> /// gets an appointment based on the given id /// </summary> public Appointment RetrieveAppointmentByID(int id) { Appointment appointment = null; try { appointment = _appointmentAccessor.SelectAppointmentByID(id); if (appointment == null) { throw new ApplicationException("No Data"); } } catch (Exception ex) { ExceptionLogManager.getInstance().LogException(ex); throw ex; } return(appointment); }