/// <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)); }