// GET: Student
        public async Task <ActionResult> Index(int pageNo = 1, string name = "")
        {
            var pageSize = 5;
            var model    = new StudentsHomeModel
            {
                PageNo   = pageNo,
                Name     = name,
                Students = _studentsService.GetPage(pageNo, pageSize, name),
                // Countries = (await _countryService.GetCountries()).ToList()
            };


            model.Countries = await Task.Run(() =>
            {
                return(_countryService.GetCountries().ToList());
            });

            if (model.Students.Count() == 0)
            {
                model.PageNo = 1;
            }
            return(View(model));
        }
 public IEnumerable <Student> Get()
 {
     return(_service.GetPage(1, 5, null));
 }