Esempio n. 1
0
        public List <BankModel> GetAll(int page, int pageSize)
        {
            var data = _repository.FindAll(a => a.IsActive).OrderByDescending(a => a.Id).Skip((page - 1) * pageSize).Take(pageSize);

            return(data.ConvertToListModel().ToList());
        }