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)); }
public async Task <IActionResult> Team() { var doctors = await doctorsService.GetAll <DoctorViewModel>(); return(View(doctors)); }