Beispiel #1
0
        public ActionResult GetAllPatientByName(string PatientName, int Skip)
        {
            PatientViewModel patientViewModel = new PatientViewModel();
            var getAllPatient = _patientBL.GetAllPatientByName(PatientName, Skip, GlobalConst.Records.LandingTake);

            patientViewModel.PatientSearchResult = Mapper.Map <IEnumerable <PatientSearchResult> >(getAllPatient.PatientDetails);
            patientViewModel.PatientCount        = getAllPatient.TotalCount;
            return(Json(patientViewModel, GlobalConst.ContentTypes.TextHtml));
        }
Beispiel #2
0
        public ActionResult GetAllPatientByName(string PatientName, int Skip)
        {
            PatientViewModel patientViewModel = new PatientViewModel();
            var getAllPatient = _patientImplBL.GetAllPatientByName(PatientName, Skip, GlobalConst.Records.LandingTake);

            patientViewModel.PatientSearchResult = getAllPatient.PatientDetails.Select(patientSearchResult => new PatientSearchResult().InjectFrom(patientSearchResult)).Cast <PatientSearchResult>().ToList();
            patientViewModel.PatientCount        = getAllPatient.TotalCount;
            return(Json(patientViewModel, GlobalConst.ContentTypes.TextHtml));
        }
Beispiel #3
0
        public void Get_AllPatientsByFirstName()
        {
            var getAllPatientsbyFirstName = _patientImplBL.GetAllPatientByName("A", 0, 10);

            Assert.IsTrue(getAllPatientsbyFirstName != null, "Unable to find");
        }