コード例 #1
0
 public Kullanici SelectedIdKullanici(int KullaniciId)
 {
     try
     {
         Kullanici responseEntitiy;
         using (var repo = new KullaniciRepository())
         {
             responseEntitiy = repo.IdSelect(KullaniciId);
             if (responseEntitiy == null)
             {
                 throw new NullReferenceException("Customer doesnt exists!");
             }
         }
         return(responseEntitiy);
     }
     catch (Exception ex)
     {
         throw new Exception("BusinessLogic:CustomerBusiness::SelectCustomerById::Error occured.", ex);
     }
 }