Exemplo n.º 1
0
 public bool InsertSirket(Sirket entity)
 {
     try
     {
         bool isSuccess;
         using (var repo = new SirketRepository())
         {
             isSuccess = repo.Insert(entity);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         throw new Exception("SOABusiness:SirketBusiness::InsertSirket::Error occured.", ex);
     }
 }
Exemplo n.º 2
0
 public bool InsertSirket(Sirket entity)
 {
     try
     {
         bool isSuccess;
         using (var repo = new SirketRepository())
         {
             isSuccess = repo.Insert(entity);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("BusinessLogic:SirketBusiness::InsertSirket::Error occured.", ex);
     }
 }
Exemplo n.º 3
0
 public bool SirketEkle(Sirket sirket)
 {
     try
     {
         bool isSuccess;
         using (var repo = new SirketRepository())
         {
             isSuccess = repo.Insert(sirket);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("Business:SirketBusiness::SirketEkle::Hata Oluştu.", ex);
     }
 }