public Hesap HesapIdSec(int HesapId)
 {
     try
     {
         Hesap responseEntitiy = null;
         using (var repo = new HesapRepository())
         {
             responseEntitiy = repo.IdSec(HesapId);
         }
         return(responseEntitiy);
     }
     catch (Exception ex)
     {
         throw new Exception("HesapBusiness:HesapRepository:Seçme Hatası", ex);
     }
 }
 public Hesap HesapDurumGuncelle(int HesapID, string durum)
 {
     try
     {
         using (var repo = new HesapRepository())
         {
             if (repo.hesapIdGuncelle(HesapID, durum))
             {
                 return(repo.IdSec(HesapID));
             }
         }
         return(null);
     }
     catch (Exception ex)
     {
         throw new Exception("HesapBusiness:HesapRepository:Güncelleme Hatası", ex);
     }
 }