erp-platform/api/src/Kurs.Platform.Application/DeveloperKit/CustomComponentAppService.cs
Sedat Öztürk 81ced25160 Düzenleme
2025-08-11 00:49:52 +03:00

28 lines
840 B
C#

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Kurs.Platform.DeveloperKit;
using Kurs.Platform.Entities;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;
namespace Platform.Api.Application;
public class CustomComponentAppService : CrudAppService<
CustomComponent,
CustomComponentDto,
Guid,
PagedAndSortedResultRequestDto,
CreateUpdateCustomComponentDto>, ICustomComponentAppService
{
public CustomComponentAppService(IRepository<CustomComponent, Guid> repository) : base(repository)
{
}
public async Task<List<CustomComponentDto>> GetActiveComponentsAsync()
{
var components = await Repository.GetListAsync(x => x.IsActive);
return await MapToGetListOutputDtosAsync(components);
}
}