Files
Backend-Api/CompanyManagment.Application/TaxJobCategoryApplication.cs
2024-07-05 21:36:15 +03:30

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();
}
}