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

            depotManager.DeleteDepot(id);
        }