Exemplo n.º 1
0
        /// <summary>
        /// Gets the count of service providers for the given search fields
        /// </summary>
        /// <param name="searchText">The search text by provider name</param>
        /// <param name="countyId">County to search within </param>
        /// <param name="categoryId">Category id to search for</param>
        /// <returns></returns>
        public int GetServiceProvidersCount(string searchText, int?countyId, int?categoryId)
        {
            if (searchText == "")
            {
                searchText = null;
            }
            var serviceProviderRepo = new ServiceProviderRepo();

            return(serviceProviderRepo.GetAllServiceProvidersByNameCount(searchText, countyId, categoryId));
        }