public async Task <IActionResult> CreateBallot(int attendeeId)
        {
            User currentUser = await _userManager.GetUserAsync(HttpContext.User);

            if (!currentUser.VendorId.HasValue)
            {
                return(Error("User account does not have vendor associated"));
            }

            int    vendorId            = currentUser.VendorId.Value;
            string scannedAttendeeName = null;

            if (ModelState.IsValid && _attendeeDataAccessor.AttendeeExists(attendeeId))
            {
                _prizeDataAccessor.CreatePrizeTickets(vendorId, attendeeId);

                Attendee attendee = _attendeeDataAccessor.Get(attendeeId);
                scannedAttendeeName = attendee.FirstName + " " + attendee.LastName;
            }
            else
            {
                ModelState.AddModelError(string.Empty, "Attendee does not exist");
            }

            return(CreateBallotViewAction(vendorId, scannedAttendeeName));
        }
        //POST: CheckIn/CheckInAttendee
        public IActionResult CheckInAttendee(int attendeeId)
        {
            string checkedInAttendeeName = string.Empty;

            if (ModelState.IsValid && _attendeeAccessor.AttendeeExists(attendeeId))
            {
                if (!_attendeeAccessor.IsAttendeeCheckedIn(attendeeId))
                {
                    Attendee attendee = _attendeeAccessor.CheckInAttendee(attendeeId);
                    checkedInAttendeeName = attendee.FirstName + " " + attendee.LastName;
                }
                else
                {
                    ModelState.AddModelError(string.Empty, "Attendee is already checked in");
                }
            }
            else
            {
                ModelState.AddModelError(string.Empty, "Attendee does not exist");
            }

            return(CreateIndexViewResult(checkedInAttendeeName));
        }