public IEnumerable <AfterActionReportView> List() { try { using (AfterActionReportRepository aarRepo = new AfterActionReportRepository()) { return(aarRepo.GetList <AfterActionReportView>()); } } catch (Exception ex) { throw ex; } }
public IEnumerable <AfterActionReportView> GetAllAARsBySubsId(int subsId) { try { using (AfterActionReportRepository aarRepo = new AfterActionReportRepository()) { return(aarRepo.GetList <AfterActionReportView>(new { Subscriber_Id = subsId })); } } catch (Exception ex) { throw ex; } }