コード例 #1
0
        public List <Kullanici> SelectAllKullanici()
        {
            var responseEntities = new List <Kullanici>();

            try
            {
                using (var repo = new KullaniciRepository())
                {
                    foreach (var entity in repo.SelectAll())
                    {
                        responseEntities.Add(entity);
                    }
                }
                return(responseEntities);
            }
            catch (Exception ex)
            {
                throw new Exception("SOABusiness:KullaniciBusiness::SelectAllKullanici::Error occured.", ex);
            }
        }
コード例 #2
0
        public List <Kullanici> SelectAllKullanici()
        {
            var kullaniciListesi = new List <Kullanici>();

            try
            {
                using (var repo = new KullaniciRepository())
                {
                    foreach (var kull in repo.SelectAll())
                    {
                        kullaniciListesi.Add(kull);
                    }
                }
                return(kullaniciListesi);
            }
            catch (Exception ex)
            {
                LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
                throw new Exception("Business:KullaniciBusiness::SelectAllKullanici::Hata Oluştu.", ex);
            }
        }