public ActionResult destroyDepot(int id) { using (DepotManager dm = new DepotManager()) { dm.DeleteDepot(id); } return(RedirectToAction("Index")); }
public long DeleteDepot(long depotId) { try { return(_depotManager.DeleteDepot(depotId)); } catch (Exception ex) { ErrorLogger.LoggError(ex.StackTrace, ex.Source, ex.Message); return(0); } }
public void DeleteDepot(Guid id) { DepotManager depotManager = new DepotManager(); depotManager.DeleteDepot(id); }