Пример #1
0
        public IActionResult Index()
        {
            var model = new PatientsListViewModel
            {
                Patients = patientBL.GetAllPatients().Select(p => new Patient
                {
                    DbPatient       = p,
                    IsHeightVIsible = true
                })
            };

            return(View(model));
        }
Пример #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);
        }
Пример #3
0
 public IList <Patient> GetAllPatients()
 {
     return(_patientdto.GetAllPatients());
 }
Пример #4
0
 public IEnumerable <Patient> GetAllPatients()
 {
     return(_patient.GetAllPatients());
 }