public UnitOfWork(ApplicationDbContext context)
        {
            _context = context;

            AppointmentModule = new appointmentModuleRepository(_context);
            Doctor            = new doctorRepository(_context);
            Patient           = new patientRepository(_context);
            Staff             = new staffRepository(_context);
            Payment           = new paymentRepository(_context);
            UserInfo          = new userInfoRepository(_context);
        }
Exemplo n.º 2
0
        public JsonResult GetPatientByDetails([FromUri] patient patdetails)
        {
            patientRepository repo = new patientRepository();

            return(Json(repo.GetPatient(patdetails), JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
        public JsonResult getPatientlist()
        {
            patientRepository repo = new patientRepository();

            return(Json(repo.GetAllPatients(), JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 4
0
        public JsonResult GetPatientById(int patid)
        {
            patientRepository repo = new patientRepository();

            return(Json(repo.GetPatient(patid), JsonRequestBehavior.AllowGet));
        }