Beispiel #1
0
 /// <summary>
 /// Creator: Carl Davis
 /// Created: 2/13/2020
 /// Approver: Ethan Murphy, 2/14/2020
 /// Approver: Daulton Chuck Baxter, 2/14/2020
 ///
 /// Method to retrieve a facility maintenance record by user id
 /// </summary>
 /// <remarks>
 /// Updater:
 /// Updated:
 /// Update:
 /// </remarks>
 /// <param name="userID"></param>
 /// <returns>List<FacilityMaintenance> objects</returns>
 public List <FacilityMaintenance> RetrieveFacilityMaintenanceByUserID(int userID, bool active)
 {
     if (userID < 100000)
     {
         throw new ArgumentOutOfRangeException("User ID is out of range.");
     }
     try
     {
         return(_facilityMaintenanceAccessor.SelectFacilityMaintenanceByUserID(userID, active));
     }
     catch (Exception ex)
     {
         throw new ApplicationException("Facility Maintenance Record Not Found!", ex);
     }
 }