Beispiel #1
0
        public ActionResult Create(int legId)
        {
            ViewBag.Guests = _repo.AllGuestsList().ToList();
            GuestsOnLegs g = new GuestsOnLegs {
                LegId = legId
            };

            return(PartialView("_Create", g));
        }
        public ActionResult GuestList(int id)
        {
            ViewBag.Guests = _repo.AllGuestsList();

            ViewBag.ExistingGuest = new GuestsOnLegs {
                LegId = id
            };
            var guests = _repo.GetGuestOnLegsByLegID(id);

            return(View("_Guests", guests));
        }