Ejemplo n.º 1
0
        public async Task <IActionResult> Get(int page = 1)
        {
            var customers = await _customers.GetAllPerPage(page);

            var response = _mapper.Map <IEnumerable <CustomerResponse> >(customers);

            return(Ok(response));
        }