Beispiel #1
0
        public List <Arac> AracHepsiniSec()
        {
            var responseEntities = new List <Arac>();

            try
            {
                using (var repo = new AracRepository())
                {
                    foreach (var entity in repo.HepsiniSec())
                    {
                        responseEntities.Add(entity);
                    }
                }
                if (responseEntities == null)
                {
                    return(responseEntities);
                }
                return(responseEntities);
            }
            catch (Exception ex)
            {
                throw new Exception("AracBusiness:AracRepository:Hepsini Seçme Hatası", ex);
            }
        }