コード例 #1
0
 public Kullanici KullaniciSecById(int kullID)
 {
     try
     {
         Kullanici secilenKullanici;
         using (var repo = new KullaniciRepository())
         {
             secilenKullanici = repo.SelectedById(kullID);
             if (secilenKullanici == null)
             {
                 throw new NullReferenceException("Girilen KullaniciID bulunamadi!");
             }
         }
         return(secilenKullanici);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("Business:KullaniciBusiness::KullaniciSecById::Hata Oluştu.", ex);
     }
 }