Restucture Project
This commit is contained in:
parent
5a14843e31
commit
b2abfe9e87
177 changed files with 1231 additions and 869 deletions
57
Controllers/RecruitController.cs
Normal file
57
Controllers/RecruitController.cs
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue