31 lines
777 B
C#
31 lines
777 B
C#
|
using CandidateReviewContracts.BindingModels;
|
|||
|
using CandidateReviewContracts.BusinessLogicsContracts;
|
|||
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
|
|||
|
namespace CandidateReviewRestApi.Controllers
|
|||
|
{
|
|||
|
[Route("api/[controller]/[action]")]
|
|||
|
[ApiController]
|
|||
|
public class ReportController : Controller
|
|||
|
{
|
|||
|
private readonly IReportLogic _reportLogic;
|
|||
|
public ReportController(IReportLogic reportLogic)
|
|||
|
{
|
|||
|
_reportLogic = reportLogic;
|
|||
|
}
|
|||
|
|
|||
|
[HttpPost]
|
|||
|
public void Resume(ReportBindingModel model)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
_reportLogic.SaveResumeToPdf(model);
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
throw new Exception(ex.Message);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|