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()); }