Example #1
0
 public bool UpdateSirket(Sirket entity)
 {
     try
     {
         bool isSuccess;
         using (var repo = new SirketRepository())
         {
             isSuccess = repo.Update(entity);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         throw new Exception("SirketBusiness:SirketRepository:Güncelleme Hatası", ex);
     }
 }
Example #2
0
 public bool UpdateSirket(Sirket entity)
 {
     try
     {
         bool isSuccess;
         using (var repo = new SirketRepository())
         {
             isSuccess = repo.Update(entity);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("BusinessLogic:SirketBusiness::UpdateSirket::Error occured.", ex);
     }
 }
Example #3
0
 public bool SirketGuncelle(Sirket sirket)
 {
     try
     {
         bool isSuccess;
         using (var repo = new SirketRepository())
         {
             isSuccess = repo.Update(sirket);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("Business:SirketBusiness::SirketGuncelle::Hata Oluştu.", ex);
     }
 }