Ejemplo n.º 1
0
        public IActionResult ShowList(int page, int limit)
        {
            var list  = _specificationRepository.ShowList();
            int count = list.Count();

            list = list.Skip((page - 1) * limit).Take(limit).ToList();

            return(Ok(new
            {
                msg = "",
                code = 0,
                data = list,
                count = count
            }));
        }