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

35 lines
1.2 KiB
C#

using Company.Domain.ReportClientAgg;
using CompanyManagment.App.Contracts.Report;
using CompanyManagment.App.Contracts.ReportClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CompanyManagment.Application;
public class ReportClientApplication : IReportClientApplication
{
private readonly IReportClientRepository _reportClientRepository;
public ReportClientApplication(IReportClientRepository reportClientRepository)
{
_reportClientRepository = reportClientRepository;
}
public List<CheckoutReportViewModel> GetAllCheckoutReport(long workshopId, CheckoutReportSearchModel searchModel)
{
return _reportClientRepository.GetAllCheckoutReport(workshopId, searchModel);
}
public List<CheckoutReportViewModel> GetAllCheckoutReportPrintAll(long workshopId, CheckoutReportSearchModel searchModel)
{
return _reportClientRepository.GetAllCheckoutReportPrintAll(workshopId, searchModel);
}
public CheckoutReportTotalsViewModel GetAllSumCheckoutReport(long workshopId, CheckoutReportSearchModel searchModel)
{
return _reportClientRepository.GetAllSumCheckoutReport(workshopId, searchModel);
}
}