Example #1
0
        } //OK

        public async Task <IActionResult> AllDentists()
        {
            var dentists = (await administratorService.AllDentists()).Select(dentist => new AllDentistsViewModel
            {
                FirstName   = dentist.Firstname,
                LastName    = dentist.Lastname,
                PhoneNumber = dentist.PhoneNumber,
                Email       = dentist.Email,
                Id          = dentist.Id
            });

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