public ActionResult SwagEm() { var swagEmResult = new SwagEmResult(); var swag = _swagService.GetAllSwag() .FirstOrDefault(s => !s.HasBeenSwagged); if (swag != null) { var attendee = _attendeeService.GetAllAttendees() .FirstOrDefault(a => !a.HasReceivedSwag() && !a.DeclinedSwag.Contains(swag.Name) && (!swag.IsMemberOnly || a.IsMember)); _attendeeService.AttendeeReceivedSwag(attendee, swag); _swagService.MarkAsSwagged(swag); swagEmResult = new SwagEmResult { Attendee = attendee, SwagItem = swag }; } return(Json(swagEmResult)); }