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); }
public IEnumerable <Model.Account> GetAll() { return(_accountRepository.GetAll()); }