Ejemplo n.º 1
0
        public void SaveAccountDetails(AccountModel accountModelDetails)
        {
            AccountRepository accountRepository = new AccountRepository();
            AccountDTO accountEntity = new AccountDTO();

            AutoMapper.Mapper.Map(accountModelDetails, accountEntity);
            accountRepository.SaveAccountDetails(accountEntity);
        }
Ejemplo n.º 2
0
        public IList<AccountModel> GetAccountDetails()
        {
            AccountRepository accountRepository = new AccountRepository();
            IList<AccountModel> accountModelList = new List<AccountModel>();

            AutoMapper.Mapper.Map(accountRepository.GetAccountDetails(), accountModelList);
            return accountModelList;
        }