Esempio n. 1
0
 public IEnumerable<Wrapper> GetSampleTestContainers(int sampleTestId)
 {
     SmartCollection<SampleTestContainer> results = new SmartCollection<SampleTestContainer>();
     if (AppLib.DesignMode)
     {
         LoadMockDataSampleTestContainer(ref results);
     }
     else
     {
         try
         {
             using (SampleDAO ordersDao = new SampleDAO())
             {
                 results = ordersDao.GetSampleTestContainers(sampleTestId);
             }
         }
         catch (Exception)
         {
             throw;
         }
     }
     return IndexData(results);
 }