예제 #1
0
 public ActionResult destroyDepot(int id)
 {
     using (DepotManager dm = new DepotManager())
     {
         dm.DeleteDepot(id);
     }
     return(RedirectToAction("Index"));
 }
예제 #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);
     }
 }
예제 #3
0
        public void DeleteDepot(Guid id)
        {
            DepotManager depotManager = new DepotManager();

            depotManager.DeleteDepot(id);
        }