// GET: Schedule/Create public ActionResult Create() { var doctorFacilities = doctorFacilityRepo.GetAll(); //ViewBag.DoctorId = new SelectList(doctorFacilityRepo.GetAllDoctors(), "Id", "Name"); ViewBag.FacilityId = new SelectList(doctorFacilityRepo.GetAllFacilities(), "Id", "Name"); ViewBag.ForeignDoctorServiceId = doctorServiceRepo.GetAll(); return(View()); }
// GET: Mapping public ActionResult Index() { var model = new MappingViewModel() { ForeignAddresses = addressRepo.GetAll(), DoctorFacilities = doctorFacilityRepo.GetNotMapped(), ForeignDoctorServices = doctorServiceRepo.GetAll() }; return(View(model)); }