Esempio n. 1
0
        public IActionResult GetDetails(int id)
        {
            var db      = new s18986Context();
            var pacjent = db.Patients.FirstOrDefault(d => d.IdPatient == id);

            return(View(pacjent));
        }
Esempio n. 2
0
        public IActionResult Delete(Patients pat)
        {
            if (!ModelState.IsValid)
            {
                return(View(pat));
            }
            var db = new s18986Context();

            db.Patients.Remove(pat);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 3
0
 public DoctorsController(s18986Context context)
 {
     _context = context;
 }
Esempio n. 4
0
 public PatientsController(Models.s18986Context context)
 {
     _context = context;
 }
 public SqlServerStudentDbService(s18986Context dbContext)
 {
     _dbContext = dbContext;
 }