private IActionResult CreateBallotViewAction(int vendorId, string scannedAttendeeName = null) { VendorCreateBalllotViewModel viewModel = new VendorCreateBalllotViewModel() { AttendeesScanned = _attendeeDataAccessor.GetNumberOfAttendeesScannedBy(vendorId), TotalAttendees = _attendeeDataAccessor.GetNumberOfAttendees(), ScannedAttendeeName = scannedAttendeeName }; return(View("CreateBallot", viewModel)); }
/// <summary> /// CreateIndexViewResult - show info about checkin /// </summary> /// <param name="attendeeName">input attendee name</param> /// <returns></returns> private IActionResult CreateIndexViewResult(string attendeeName) { CheckInIndexViewModel checkInIndexViewModel = new CheckInIndexViewModel() { TotalAttendees = _attendeeAccessor.GetNumberOfAttendees(), CheckedInAttendees = _attendeeAccessor.GetNumberOfCheckedInAttendees(), CheckedInAttendeeName = attendeeName }; return(View("Index", checkInIndexViewModel)); }