Esempio n. 1
0
 public List <DepotObject> GetDepots()
 {
     try
     {
         return(_depotManager.GetDepots());
     }
     catch (Exception ex)
     {
         ErrorLogger.LoggError(ex.StackTrace, ex.Source, ex.Message);
         return(new List <DepotObject>());
     }
 }
Esempio n. 2
0
 // GET: Depot
 public ActionResult Index()
 {
     using (DepotManager dm = new DepotManager())
     {
         return(View(dm.GetDepots()));
     }
 }