示例#1
0
 public bool DeleteVehicleById(int ID)
 {
     try
     {
         bool isSuccess;
         using (var repo = new VehiclesRepository())
         {
             isSuccess = repo.DeletedById(ID);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("BusinessLogic:VehiclesBusiness::DeleteVehicleById::Error occured.", ex);
     }
 }