41 lines
1.2 KiB
C#
Raw Permalink Normal View History

2023-05-20 01:21:33 +04:00
using CaseAccountingContracts.BindingModels;
using CaseAccountingContracts.BusinessLogicContracts;
using CaseAccountingContracts.ViewModels;
2023-05-20 01:21:33 +04:00
using Microsoft.AspNetCore.Mvc;
namespace CaseAccountingRestApi.Controllers
{
[Route("api/[controller]/[action]")]
[ApiController]
public class ReportCustomerController : Controller
2023-05-23 20:48:12 +04:00
{
private readonly IReportCustomerLogic reportLogic;
2023-05-20 01:21:33 +04:00
public ReportCustomerController(IReportCustomerLogic reportLogic)
{
2023-05-23 20:48:12 +04:00
this.reportLogic = reportLogic;
2023-05-20 01:21:33 +04:00
}
[HttpPost]
public byte[] LawyerHearinglist(LawyerHearingListBindingModel listModel)
2023-05-20 01:21:33 +04:00
{
2023-05-23 20:48:12 +04:00
byte[] file = reportLogic.SaveListFile(listModel);
2023-05-20 01:21:33 +04:00
return file;
}
[HttpPost]
public List<ReportHearingSpecializationViewModel> GetReportData(ReportBindingModel reportModel)
{
var list = reportLogic.GetHearingSpecialization(reportModel);
return list;
}
[HttpPost]
public void SendByMailStatusReport(ReportBindingModel reportModel)
{
reportLogic.SendByMailStatusReport(reportModel);
}
}
2023-05-20 01:21:33 +04:00
}