Ejemplo n.º 1
0
        } //OK

        public async Task <IActionResult> AllPatients()
        {
            var patients = (await administratorService.AllPatients()).Select(patient => new AllPatientsViewModel
            {
                FirstName   = patient.Firstname,
                LastName    = patient.Lastname,
                PhoneNumber = patient.PhoneNumber,
                Email       = patient.Email,
                Id          = patient.Id
            });

            return(View(patients));
        } //OK