예제 #1
0
        // 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());
        }
예제 #2
0
        // GET: Mapping
        public ActionResult Index()
        {
            var model = new MappingViewModel()
            {
                ForeignAddresses      = addressRepo.GetAll(),
                DoctorFacilities      = doctorFacilityRepo.GetNotMapped(),
                ForeignDoctorServices = doctorServiceRepo.GetAll()
            };

            return(View(model));
        }