2023-05-20 01:21:33 +04:00
|
|
|
|
using CaseAccountingContracts.BindingModels;
|
|
|
|
|
using CaseAccountingContracts.BusinessLogicContracts;
|
2023-05-25 01:59:24 +04:00
|
|
|
|
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]
|
2023-05-23 00:11:38 +04:00
|
|
|
|
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;
|
|
|
|
|
}
|
2023-05-25 01:59:24 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[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-23 00:11:38 +04:00
|
|
|
|
}
|
2023-05-20 01:21:33 +04:00
|
|
|
|
}
|