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))); }
public async Task <IActionResult> Index() { return(View(await _getMedicsServices.GetMedics())); }