public async Task <List <AccountToService> > GetRelatedServiceAsync(SearchManager searcher)
        {
            AppHelpers.Agreement    oAgreementHelper = new AppHelpers.Agreement();
            List <AccountToService> colService       = await oAgreementHelper.GetServiceAsync(searcher);

            ////fill an IList with the search results
            //colService = await oAgreementHelper.FillClubServiceListAsync(services);
            return(colService);
        }
Exemple #2
0
        public async Task <List <AccountToService> > GetServiceByClubAsync(
            ContentURI uri, int accountId)
        {
            AppHelpers.Agreement oAgreementHelper = new AppHelpers.Agreement();
            //the sp also sets the owning club id
            List <AccountToService> colClubService
                = await oAgreementHelper.GetServiceByClubIdAsync(uri, accountId);

            return(colClubService);
        }
        public async Task <List <SearchManager.SearchType> > GetSearchTypesByNetworkIdAndServiceGroupIdAsync(
            ContentURI uri, GenHelpers.SUBAPPLICATION_TYPES subAppType,
            int networkId, int serviceGroupId)
        {
            AppHelpers.Agreement            oAgreementHelper = new AppHelpers.Agreement();
            List <SearchManager.SearchType> colSearchTypes
                = await oAgreementHelper.GetTypesAsync(uri, networkId, serviceGroupId);

            return(colSearchTypes);
        }
        public async Task <List <ServiceClass> > GetServiceGroupsAsync(ContentURI uri)
        {
            AppHelpers.Agreement oAgreementHelper = new AppHelpers.Agreement();
            List <ServiceClass>  servicegroups
                = await oAgreementHelper.GetServiceGroupsAsync(uri);

            //152 uses ef only to edit content
            //List<ServiceClass> servicegroups
            //    = await _dataContext.ServiceClass.ToListAsync();
            return(servicegroups);
        }
Exemple #5
0
        /// <summary>
        /// Returns a queryable list of clubs subscribed to a service
        /// </summary>
        public async Task <List <AccountToService> > GetSubscribedClubsByServiceAsync(
            ContentURI uri, int serviceId)
        {
            AppHelpers.Agreement oAgreementHelper = new AppHelpers.Agreement();
            //the sp also sets the owning club id
            bool bIsOwner = false;
            List <AccountToService> colClubService
                = await oAgreementHelper
                  .GetServiceByServiceIdAsync(uri, serviceId, bIsOwner);

            return(colClubService);
        }