Beispiel #1
0
        public async Task <IEnumerable <ServiceProviderResource> > GetServiceProvidersByStatus(int statusId)
        {
            var pendingRequests = await _serviceProviderRepository.GetServiceProvidersByStatusAsync(statusId);

            var result =
                _mapper.Map <IEnumerable <ServiceProvider>, IEnumerable <ServiceProviderResource> >(pendingRequests);

            return(result);
        }