public async Task <IList <Announcement> > GetAnnouncementsList(int?eventId = null) { try { var queryParameter = new EventIdParameter { EventId = eventId }; var announcementsList = await _api.GetAnnouncementsList(queryParameter); return(announcementsList); } catch (Exception exception) { SaveExceptionLocation(exception); throw; } }
public async Task <IList <SponsorLevel> > GetSponsorLevels(int?eventId = null) { try { var queryParameter = new EventIdParameter { EventId = eventId }; var sponsorLevels = await _api.GetSponsorLevels(queryParameter); return(sponsorLevels); } catch (Exception exception) { SaveExceptionLocation(exception); throw; } }
public void Apply(EventIdParameter param) => _query.Where($"event.custom_id = ANY({_parameters.Add(param.Values)})"); // TODO: add 'custom_id' field in the DB.
public void Apply(EventIdParameter param) => _query.Where($"event.event_id = ANY({_parameters.Add(param.Values)})");