public IActionResult GetDetails(int id) { var db = new s18967Context(); var doctor = db.Doctors.FirstOrDefault(e => e.IdDoctor == id); return(View(doctor)); }
public IActionResult IdDoctor() { var db = new s18967Context(); var doctors = db.Doctors.ToList(); return(View(doctors)); }
public IActionResult AddDoctor(Doctors doctors) { var db = new s18967Context(); doctors.Email = "*****@*****.**"; db.Doctors.Add(doctors); db.SaveChanges(); return(RedirectToAction("IdDoctor")); }
public StudentsController() { db = new s18967Context(); }