29 lines
769 B
C#
29 lines
769 B
C#
|
|
using System.Collections.Generic;
|
|
using Company.Domain.DateSalaryItemAgg;
|
|
using CompanyManagment.App.Contracts.DateSalaryItem;
|
|
|
|
namespace CompanyManagment.Application;
|
|
|
|
public class DateSalaryItemApplication : IDateSalaryItemApplication
|
|
{
|
|
private readonly IDateSalaryItemRepository _dateSalaryItemRepository;
|
|
|
|
public DateSalaryItemApplication(IDateSalaryItemRepository DateSalaryItemRepository)
|
|
{
|
|
_dateSalaryItemRepository = DateSalaryItemRepository;
|
|
}
|
|
|
|
|
|
public EditDateSalaryItem GetDetails(long id)
|
|
{
|
|
return _dateSalaryItemRepository.GetDetails(id);
|
|
}
|
|
|
|
public List<DateSalaryItemViewModel> Search(DateSalaryItemSearchModel searchModel)
|
|
{
|
|
return _dateSalaryItemRepository.Search(searchModel);
|
|
}
|
|
|
|
|
|
} |