public ActionResult <IEnumerable <GuestModel> > GetAllGuests()
        {
            var userId = GetAuthorizedUserId();
            var guests = _guestService.GetAllUserGuests(userId);

            return(Ok(guests));
        }
        public IEnumerable <GuestModel> SearchGuestsByName(long userId, string searchPattern)
        {
            var guests = _guestService.GetAllUserGuests(userId);

            return(guests.Where(guest =>
                                guest.Name.ToLowerInvariant().Contains(
                                    searchPattern.ToLowerInvariant())));
        }