public ActionResult deleteDepot(int id) { using (DepotManager dm = new DepotManager()) { var model = dm.GetDepot(id); return(PartialView(model)); } }
public DepotObject GetDepot(long depotId) { try { return(_depotManager.GetDepot(depotId)); } catch (Exception ex) { ErrorLogger.LoggError(ex.StackTrace, ex.Source, ex.Message); return(new DepotObject()); } }