示例#1
0
 private bool DeleteAraba(int ID)
 {
     try
     {
         using (var ArabaBussines = new ArabaBusiness())
         {
             return(ArabaBussines.DeleteArabaById(ID));
         }
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("Araba doesn't exists.");
     }
 }