57 lines
No EOL
1.7 KiB
C#
57 lines
No EOL
1.7 KiB
C#
using BMA.EHR.Recruit.Service.Responses;
|
|
using BMA.EHR.Recruit.Service.Services;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Swashbuckle.AspNetCore.Annotations;
|
|
using BMA.EHR.Recruit.Service.Data;
|
|
|
|
namespace BMA.EHR.Recruit.Service.Controllers
|
|
{
|
|
[Route("api/v{version:apiVersion}/recruit")]
|
|
[ApiVersion("1.0")]
|
|
[ApiController]
|
|
[Produces("application/json")]
|
|
[Authorize]
|
|
[SwaggerTag("จัดการข้อมูลการสอบแข่งขัน")]
|
|
public class RecruitController : BaseController
|
|
{
|
|
#region " Fields "
|
|
|
|
private readonly ApplicationDbContext _context;
|
|
private readonly DocumentService _documentService;
|
|
private readonly IWebHostEnvironment _webHostEnvironment;
|
|
private readonly RecruitService _recruitService;
|
|
|
|
#endregion
|
|
|
|
#region " Constructor and Destructor "
|
|
|
|
public RecruitController(ApplicationDbContext context,
|
|
DocumentService documentService,
|
|
IWebHostEnvironment webHostEnvironment,
|
|
RecruitService recruitService)
|
|
{
|
|
_context = context;
|
|
_documentService = documentService;
|
|
_webHostEnvironment = webHostEnvironment;
|
|
_recruitService = recruitService;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region " Methods "
|
|
|
|
#region " จัดการรอบการสมัครสอบแข่งขัน "
|
|
|
|
|
|
#endregion
|
|
|
|
[HttpGet]
|
|
public async Task<ActionResult<ResponseObject>> GetsAsync()
|
|
{
|
|
return Success("OK");
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
} |