Exemplo n.º 1
0
        // GET: RSVP
        public async Task <ActionResult> RSVP()
        {
            var storerId = GuestStore.Helpers.GetStorerIdFromCookie(Request);

            ViewData["GuestViewModel"] = new GuestViewModel {
                IsComing = true, AddedBy = storerId
            };

            var people = _GuestManager.GetGuests(storedBy: storerId != null ? Guid.Parse(storerId.ToString()) : (Guid?)null);

            ViewBag.ReturnUrl  = "/RSVP/AddGuest";
            ViewData["Guests"] = new Guests {
                AllGuests = people, storerId = storerId
            };
            return(View());
        }
Exemplo n.º 2
0
 private void refreshClerkRooms()
 {
     _activeGuests = _guestManager.GetGuests();
     dgClerkRooms.Items.Refresh();
     dgClerkRooms.Focus();
 }