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