Beispiel #1
0
        public async Task <IActionResult> Create(int guestReservationId)
        {
            ViewData["CountryId"]      = new SelectList(await _repository.GetCountries(), "Id", "Name");
            ViewData["JobNotableId"]   = new SelectList(await _repository.GetJobNotables(), "Id", "Name");
            ViewBag.guestReservationId = guestReservationId;

            return(View());
        }
 public async Task <IActionResult> Index()
 {
     return(View(await _repository.GetJobNotables()));
 }