示例#1
0
        public async Task <IActionResult> Index(int?pageNumber)
        {
            List <Medic> medics = await _getMedics.GetMedics();

            List <Turn> turns;

            turns = await TurnListAsync(null, null);

            ViewBag.Medics = medics;
            var size = 10;

            return(View(PaginatedList <Turn> .Create(turns, pageNumber ?? 1, size)));
        }
示例#2
0
 public async Task <IActionResult> Index()
 {
     return(View(await _getMedicsServices.GetMedics()));
 }