public IActionResult Index()
        {
            var model = new PatientsListViewModel
            {
                Patients = patientBL.GetAllPatients().Select(p => new Patient
                {
                    DbPatient       = p,
                    IsHeightVIsible = true
                })
            };

            return(View(model));
        }
Exemple #2
0
        private void АutoCompleteInsert()
        {
            var dbpatients = patientService.GetAllPatients();
            var patients   = dbpatients.Select(x => x.PatientName).ToArray();

            txtFilter.AutoCompleteSource = AutoCompleteSource.CustomSource;
            txtFilter.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
            txtFilter.AutoCompleteCustomSource.AddRange(patients);
        }
 public IList <Patient> GetAllPatients()
 {
     return(_patientdto.GetAllPatients());
 }
 public IEnumerable <Patient> GetAllPatients()
 {
     return(_patient.GetAllPatients());
 }