public IActionResult GetDetails(int id) { var db = new s18986Context(); var pacjent = db.Patients.FirstOrDefault(d => d.IdPatient == id); return(View(pacjent)); }
public IActionResult Delete(Patients pat) { if (!ModelState.IsValid) { return(View(pat)); } var db = new s18986Context(); db.Patients.Remove(pat); db.SaveChanges(); return(RedirectToAction("Index")); }
public DoctorsController(s18986Context context) { _context = context; }
public PatientsController(Models.s18986Context context) { _context = context; }
public SqlServerStudentDbService(s18986Context dbContext) { _dbContext = dbContext; }