Ez most szerver oldalon szűr és lapoz
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Serilog;
|
||||
using WorkFlowCheck.BL.Services;
|
||||
using WorkFlowCheck.BL.Services.Interfaces;
|
||||
using WorkFlowCheck.Common.DataTables;
|
||||
using WorkFlowCheck.Common.DTO;
|
||||
|
||||
namespace WorkFlowCheck.API.Controllers
|
||||
@@ -39,6 +40,28 @@ namespace WorkFlowCheck.API.Controllers
|
||||
|
||||
return retVal;
|
||||
}
|
||||
[HttpPost("GetFilteredCheckListHeader")]
|
||||
public async Task<ApiResponseListDTO<List<CheckListHeaderDTO>>> GetFilteredCheckListHeader([FromBody] DataTablesRequest dataTablesRequest)
|
||||
{
|
||||
var retVal = new ApiResponseListDTO<List<CheckListHeaderDTO>>()
|
||||
{
|
||||
IsSuccess = true
|
||||
};
|
||||
|
||||
try
|
||||
{
|
||||
var result = await _checkListService.GetFilteredCheckListHeaderAsync(dataTablesRequest);
|
||||
retVal.Data = result.Data;
|
||||
retVal.Total = result.Total;
|
||||
retVal.Filtered = result.Filtered;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
retVal.IsSuccess = false;
|
||||
Log.Error(ex.Message);
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
[HttpGet("CreatePDF/{id}")]
|
||||
public async Task<ApiResponseDTO<byte[]>> CreatePDF(int id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user