public bool UpdateAraba(Araba entity)
 {
     try
     {
         bool isSuccess;
         using (var repo = new ArabaRepository())
         {
             isSuccess = repo.Update(entity);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         throw new Exception("ArabaBusiness:ArabaRepository:Güncelleme Hatası", ex);
     }
 }
Esempio n. 2
0
 public bool UpdateAraba(Araba entity)
 {
     try
     {
         bool isSuccess;
         using (var repo = new ArabaRepository())
         {
             isSuccess = repo.Update(entity);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("BusinessLogic:ArabaBusiness::UpdateAraba::Error occured.", ex);
     }
 }