Exemplo n.º 1
0
 public object GetDetailIndex(int id, DataSourceLoadOptions loadOptions)
 {
     try
     {
         var glavna = GlavnaDAO.GetAllObjects(id);
         return(DataSourceLoader.Load(glavna, loadOptions));
     }
     catch (Exception)
     {
         return(DataSourceLoader.Load(new List <GlavnaModel>(), loadOptions));
     }
 }
Exemplo n.º 2
0
 public object GetDetail(DataSourceLoadOptions loadOptions)
 {
     try
     {
         var glavna = GlavnaDAO.GetAllObjects(Convert.ToInt32(HttpContext.Session.GetInt32("GlavnaMasterID")));
         foreach (var item in glavna)
         {
             item.InternePoruke = InternaPorukaDAO.GetMessagesById(item.AutoID);
             CreateGlavnaFolderForExcelFiles(item.AutoID, item.DatumKreiranjaUTC);
         }
         return(DataSourceLoader.Load(glavna, loadOptions));
     }
     catch (Exception e)
     {
         return(DataSourceLoader.Load(new List <GlavnaModel>(), loadOptions));
     }
 }