Ejemplo n.º 1
0
        public List <AccountModel> getAll()
        {
            List <AccountModel> accountModels = new List <AccountModel>();
            var     listDB  = accountRepository.GetAll();
            Mapping mapping = new Mapping();



            if (listDB != null)
            {
                foreach (var item in listDB)
                {
                    AccountModel itemE = new AccountModel();
                    mapping.MapObjects(item, itemE);
                    accountModels.Add(itemE);
                }
            }

            return(accountModels);
        }
Ejemplo n.º 2
0
 public IEnumerable <Model.Account> GetAll()
 {
     return(_accountRepository.GetAll());
 }