/// <summary> /// The attendee details. /// </summary> /// <param name="attendeeId"> /// The attendee id. /// </param> /// <param name="eventId"> /// The event id. /// </param> /// <returns> /// The <see cref="ActionResult"/>. /// </returns> public ActionResult AttendeeDetails(string attendeeId, string eventId) { Attendee attendeeDetails = AttendeesService.GetAttendeeDetailsByEventsIdAndAttendeeId(eventId, attendeeId); AttendeeViewModel viewModel = new AttendeeViewModel(attendeeDetails); return(this.View(viewModel)); }
/// <summary> /// The export attendees. /// </summary> /// <param name="eventId"> /// The event id. /// </param> /// <returns> /// The <see cref="FileResult"/>. /// </returns> public FileResult ExportAttendees(string eventId) { PagedAttendees pagedAttendees = AttendeesService.GetAttendeesByEventId(eventId); CsvActionResult <Attendee> attendees = new CsvActionResult <Attendee>(pagedAttendees.Attendees, "attendees.csv"); return(attendees); }
/// <summary> /// The details. /// </summary> /// <param name="id"> /// The id. /// </param> ©o©a ©ola /// <returns> /// The <see cref="ActionResult"/>. /// </returns> public ActionResult EventDetails(string id) { var eventDetails = EventServices.GetEventById(id); PagedAttendees attendees = AttendeesService.GetAttendeesByEventId(id); EventViewModel viewModel = new EventViewModel(eventDetails, attendees); return(this.View(viewModel)); }
public EventManager() { _checkInService = new CheckInService(); _attendeeService = new AttendeesService(); }
public AttendeeManager() { _attendeeService = new AttendeesService(); _jWTService = new JWTService(); joinEventClaims.Add(ctx.Claims.FirstOrDefault(c => c.ClaimId.Equals(9)).ClaimName); }