Example #1
0
 public static List<QuedExemption> GetQuedExemptions()
 {
     try
     {
         using (QuedExemptionsContext context = new QuedExemptionsContext())
         {
             return context.QuedExemptions.ToList();
         }
     }
     catch (Exception ex)
     {
         return null;
     }
 }
Example #2
0
 public static QuedExemption GetQuedExemptionById(int exemptionId)
 {
     try
     {
         using (QuedExemptionsContext context = new QuedExemptionsContext())
         {
             return context.QuedExemptions.Find(exemptionId);
         }
     }
     catch (Exception ex)
     {
         return null;
     }
 }