21 lines
647 B
C#
21 lines
647 B
C#
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using TaxBaik.Domain.Entities;
|
|
using TaxBaik.Domain.Interfaces;
|
|
|
|
namespace TaxBaik.Application.Services;
|
|
|
|
public class CommonCodeService(ICommonCodeRepository commonCodeRepository)
|
|
{
|
|
public async Task<IEnumerable<CommonCode>> GetByGroupAsync(string codeGroup, CancellationToken ct = default)
|
|
{
|
|
return await commonCodeRepository.GetByGroupAsync(codeGroup, ct);
|
|
}
|
|
|
|
public async Task<IEnumerable<CommonCode>> GetAllActiveAsync(CancellationToken ct = default)
|
|
{
|
|
return await commonCodeRepository.GetAllActiveAsync(ct);
|
|
}
|
|
}
|