2023-05-20 00:24:04 +04:00
|
|
|
|
using CaseAccountingContracts.BindingModels;
|
|
|
|
|
using CaseAccountingContracts.BusinessLogicContracts;
|
2023-05-20 03:13:10 +04:00
|
|
|
|
using CaseAccountingContracts.ViewModels;
|
2023-05-20 00:24:04 +04:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace CaseAccountingRestApi.Controllers
|
|
|
|
|
{
|
|
|
|
|
[Route("api/[controller]/[action]")]
|
|
|
|
|
[ApiController]
|
|
|
|
|
public class ReportProviderController : Controller
|
|
|
|
|
{
|
|
|
|
|
private readonly IReportProviderLogic reportLogic;
|
|
|
|
|
|
|
|
|
|
public ReportProviderController(IReportProviderLogic reportLogic)
|
|
|
|
|
{
|
|
|
|
|
this.reportLogic = reportLogic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|
public byte[] SpecializationCaselist(CaseSpecializationListBindingModel listModel)
|
|
|
|
|
{
|
|
|
|
|
byte[] file = reportLogic.SaveListFile(listModel);
|
|
|
|
|
return file;
|
|
|
|
|
}
|
2023-05-20 03:13:10 +04:00
|
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|
public List<ReportHearingLawyerViewModel> GetReportData(ReportBindingModel reportModel)
|
|
|
|
|
{
|
|
|
|
|
var list = reportLogic.GetHearingLawyer(reportModel);
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|
public void SendByMailStatusReport(ReportBindingModel reportModel)
|
|
|
|
|
{
|
|
|
|
|
reportLogic.SendByMailStatusReport(reportModel);
|
|
|
|
|
}
|
2023-05-20 00:24:04 +04:00
|
|
|
|
}
|
|
|
|
|
}
|