using CaseAccountingContracts.BindingModels; using CaseAccountingContracts.BusinessLogicContracts; using CaseAccountingContracts.ViewModels; using Microsoft.AspNetCore.Mvc; namespace CaseAccountingRestApi.Controllers { [Route("api/[controller]/[action]")] [ApiController] public class ReportCustomerController : Controller { private readonly IReportCustomerLogic reportLogic; public ReportCustomerController(IReportCustomerLogic reportLogic) { this.reportLogic = reportLogic; } [HttpPost] public byte[] LawyerHearinglist(LawyerHearingListBindingModel listModel) { byte[] file = reportLogic.SaveListFile(listModel); return file; } [HttpPost] public List GetReportData(ReportBindingModel reportModel) { var list = reportLogic.GetHearingSpecialization(reportModel); return list; } [HttpPost] public void SendByMailStatusReport(ReportBindingModel reportModel) { reportLogic.SendByMailStatusReport(reportModel); } } }