public ActionResult Create()
        {
            var inputAppointmentModel = new AppointmentInputModel();
            var doctors       = doctorsService.GetAll();
            var outputDoctors = this.Mapper.Map <IEnumerable <DoctorBasicViewModel> >(doctors);

            inputAppointmentModel.Doctors = outputDoctors;

            return(this.View(inputAppointmentModel));
        }
Example #2
0
        public async Task <IActionResult> Team()
        {
            var doctors = await doctorsService.GetAll <DoctorViewModel>();

            return(View(doctors));
        }