public HospitalController(IApptService apptService) { ApptService = apptService; }
public IActionResult ActionMethod([FromServices] IApptService apptService) { ViewData["Message"] = "Scheduled: " + apptService.ScheduleAppt(); return(View()); }