Exemple #1
0
 public IActionResult GetDoctor(DoctorDBContext context)
 {
     return(Ok(context.Doctors.ToList()));
 }
Exemple #2
0
 public DoctorsController(IDoctorsDBService service, DoctorDBContext context)
 {
     _service = service;
     _service.InitContext(context);
 }
Exemple #3
0
 public DoctorController(DoctorDBContext context)
 {
     _context = context;
 }
Exemple #4
0
 public void InitContext(DoctorDBContext _context)
 {
     context = _context;
 }