// Add AttendeeHour : Get // wid = workshop Id public ActionResult Add(int wid = 1) { var model = new AttendeeHourEditModel(); model.WorkshopId = wid; model.Attendees = _attendeeService.GetAttendees(1, 100); // Get workshop we are adding attendee hours to model.Workshop = _workshopService.GetDetails(wid); return(View(model)); }
public void Should_return_attendees() { _attendees = _attendeeService.GetAttendees(); _mockConferenceDataProvider.Verify(x => x.GetAttendees); Assert.NotEmpty(_attendees); }
public List <AttendeeAutoComplete> Top20() { var attendees = _attendeeService.GetAttendees(1, 20); var attendeeAutoCompletes = (from a in attendees select new AttendeeAutoComplete { value = a.Id, label = a.FullName }) .ToList(); return(attendeeAutoCompletes); }