public async Task <IActionResult> GetPagedcounter([FromQuery] CounterParams counterParams)
        {
            var counters = await counterRepository.GetPagedCounter(counterParams);

            var result = mapper.Map <IEnumerable <ViewCounterResource> >(counters);

            Response.AddPagination(counters.CurrentPage, counters.PageSize, counters.TotalCount, counters.TotalPages);

            return(Ok(result));
        }