add orderyby search data list
This commit is contained in:
parent
806fadc24f
commit
e830632ac6
17 changed files with 3493 additions and 1239 deletions
|
|
@ -51,7 +51,33 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
|||
{
|
||||
try
|
||||
{
|
||||
var items = await _periodExamService.GetsAsync(showAll: false);
|
||||
var items = await _periodExamService.GetsAsync("all", showAll: false);
|
||||
|
||||
return Success(items);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return Error(ex);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ข้อมูลรอบการสมัครสอบทั้งหมด
|
||||
/// <param name="type">ประเกทประกาศสอบคัดเลือก</param>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
/// <response code="200">เมื่อทำการอ่านข้อมูลรอบการสมัครสอบทั้งหมดสำเร็จ</response>
|
||||
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
|
||||
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
|
||||
[HttpGet("type/{type}")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
||||
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
|
||||
public async Task<ActionResult<ResponseObject>> GetsByTypeAsync(string type)
|
||||
{
|
||||
try
|
||||
{
|
||||
var items = await _periodExamService.GetsAsync(type, showAll: false);
|
||||
|
||||
return Success(items);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue