public IActionResult UsersList(String id = "")
        {
            ViewBag.HeaderName = "UserList";
            try
            {
                ViewBag.PatientId = id;

                List <Models.Patient> p1 = lIPatient.GetPatients(id);

                var x = (from Patient in p1
                         where Patient.PatientLoginId == id
                         select Patient.PatientName).ToList();

                ViewBag.PatientName = x[0];

                //List <User> pUser = lIUserRepository.getUserListByUser(id);

                var x1 = (from Therapist in p1
                          where Therapist.PatientLoginId == id
                          select Therapist.Therapistid).ToList();
                var x2 = (from Provider in p1
                          where Provider.PatientLoginId == id
                          select Provider.ProviderId).ToList();

                String x3 = x2[0];
                String x4 = x1[0];


                List <UserListView> pUser1 = lIUserRepository.getUserList(ConstantsVar.Therapist, x4);

                List <UserListView> pUser2 = lIUserRepository.getUserList(ConstantsVar.Provider, x3);

                List <UserListView> pUser3 = pUser1.Concat(pUser2).ToList();



                ViewBag.UserList = pUser3;
            }
            catch (Exception ex)
            {
            }
            return(View());
        }
Beispiel #2
0
        public IEnumerable <PatientEntity> GetPatientsDetails()
        {
            var response = _patient.GetPatients();

            return(response);
        }
Beispiel #3
0
 public IActionResult GetPatientsDetails()
 {
     return(Ok(_patient.GetPatients()));
 }
        public ActionResult GetPatients(QueryParameters queryParameters)
        {
            Response <IList <Patients> > result = patient.GetPatients(queryParameters);

            return(Ok(result));
        }