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