Beispiel #1
0
 public bool DeleteSirketById(int ID)
 {
     try
     {
         bool isSuccess;
         using (var repo = new SirketRepository())
         {
             isSuccess = repo.DeletedById(ID);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("BusinessLogic:SirketBusiness::DeleteSirket::Error occured.", ex);
     }
 }
Beispiel #2
0
 public bool SirketSilById(int sirketID)
 {
     try
     {
         bool isSuccess;
         using (var repo = new SirketRepository())
         {
             isSuccess = repo.DeletedById(sirketID);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("Business:SirketBusiness::SirketSilById::Hata Oluştu.", ex);
     }
 }