Exemplo n.º 1
0
        public async Task <List <CustomerEntity> > GetCustomers()
        {
            var customers = await _data.Customers();

            //Mapping Customer to CustomerEntity
            return(Mapper.Map <List <CustomerEntity> >(customers));
        }