コード例 #1
0
 public Sirket SirketIdSec(int sirketId)
 {
     try
     {
         Sirket responseEntitiy = null;
         using (var repo = new SirketRepository())
         {
             responseEntitiy = repo.IdSec(sirketId);
         }
         return(responseEntitiy);
     }
     catch (Exception ex)
     {
         throw new Exception("SirketBusiness:SirketRepository:Seçme Hatası", ex);
     }
 }
コード例 #2
0
 public Sirket SirketIdSil(int sirketId)
 {
     try
     {
         using (var repo = new SirketRepository())
         {
             if (repo.IdSil(sirketId))
             {
                 return(repo.IdSec(sirketId));
             }
         }
         return(null);
     }
     catch (Exception ex)
     {
         throw new Exception("SirketBusiness:SirketRepository:Silme Hatası", ex);
     }
 }