using System; using System.Collections.Generic; using System.Threading.Tasks; using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Services; using Volo.Abp.Domain.Repositories; namespace ProductManagement; public class PublicProductAppService : ApplicationService, IPublicProductAppService { private readonly IRepository _productRepository; public PublicProductAppService(IRepository productRepository) { _productRepository = productRepository; } public async Task> GetListAsync() { return new ListResultDto( ObjectMapper.Map, List>( await _productRepository.GetListAsync() ) ); } }