public IActionResult Index() { PatientContext context = HttpContext.RequestServices.GetService(typeof(ConnectString.Models.PatientContext)) as PatientContext; return(View(context.GetAllPatient())); }