public List <Araba> SelectAllAraba() { var responseEntities = new List <Araba>(); try { using (var repo = new ArabaRepository()) { foreach (var entity in repo.SelectAll()) { responseEntities.Add(entity); } } return(responseEntities); } catch (Exception ex) { throw new Exception("SOABusiness:ArabaBusiness::SelectAllAraba::Error occured.", ex); } }
public List <Araba> SelectAllAraba() { var responseEntities = new List <Araba>(); try { using (var repo = new ArabaRepository()) { foreach (var entity in repo.SelectAll()) { responseEntities.Add(entity); } } return(responseEntities); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("BusinessLogic:ArabaBusiness::SelectAllAraba::Error occured.", ex); } }