예제 #1
0
        /// <summary>
        /// Determines whether [is any provider setup completed asynchronous] [the specified ukprn].
        /// </summary>
        /// <param name="aoUkprn">The awarding organisation ukprn.</param>
        /// <returns></returns>
        public async Task <bool> IsAnyProviderSetupCompletedAsync(long aoUkprn)
        {
            var setupCount = await _tqProviderRepository
                             .CountAsync(x => x.TqAwardingOrganisation.TlAwardingOrganisaton.UkPrn == aoUkprn);

            return(setupCount > 0);
        }