示例#1
0
 public IEnumerable <AfterActionReportView> List()
 {
     try
     {
         using (AfterActionReportRepository aarRepo = new AfterActionReportRepository())
         {
             return(aarRepo.GetList <AfterActionReportView>());
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 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;
     }
 }