public IActionResult Index() { var db = new s18844Context(); var patients = db.Patient.ToList(); return(View(patients)); }
public IActionResult Create(Patient patient) { if (!ModelState.IsValid) { return(View(patient)); } var db = new s18844Context(); db.Patient.Add(patient); db.SaveChanges(); return(RedirectToAction("Index")); }
public PatientsController(s18844Context context) { _context = context; }
public EfStudentDbService(s18844Context context) { _dbContext = context; }