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