30 lines
985 B
C#
30 lines
985 B
C#
using System.Collections.Generic;
|
|
using Company.Domain.TaxJobCategoryAgg;
|
|
using CompanyManagment.App.Contracts.TaxJobCategory;
|
|
|
|
namespace CompanyManagment.Application;
|
|
|
|
public class TaxJobCategoryApplication : ITaxJobCategoryApplication
|
|
{
|
|
private readonly ITaxJobCategoryRepository _taxJobCategoryRepository;
|
|
|
|
public TaxJobCategoryApplication(ITaxJobCategoryRepository taxJobCategoryRepository)
|
|
{
|
|
_taxJobCategoryRepository = taxJobCategoryRepository;
|
|
}
|
|
|
|
public TaxJobCategoryViewModel GetTaxJobCategoryByCode(string jobCategoryCode)
|
|
{
|
|
return _taxJobCategoryRepository.GetTaxJobCategoryByCode(jobCategoryCode);
|
|
}
|
|
|
|
public TaxJobCategoryViewModel GetTaxJobCategoryByName(string jobCategoryName)
|
|
{
|
|
return _taxJobCategoryRepository.GetTaxJobCategoryByName(jobCategoryName);
|
|
}
|
|
|
|
public List<TaxJobCategoryViewModel> GetAllTaxJobCategories()
|
|
{
|
|
return _taxJobCategoryRepository.GetAllTaxJobCategories();
|
|
}
|
|
} |