Added page size the search emplyee API
This commit is contained in:
parent
889b5a84b6
commit
ac23a8724d
@ -203,10 +203,9 @@ namespace MarcoBMS.Services.Controllers
|
||||
/// <returns>Paginated list of employees in BasicEmployeeVM format wrapped in ApiResponse.</returns>
|
||||
|
||||
[HttpGet("search")]
|
||||
public async Task<IActionResult> GetEmployeesByProjectBasic(Guid? projectId, [FromQuery] string? searchString, [FromQuery] int pageNumber = 1)
|
||||
public async Task<IActionResult> GetEmployeesByProjectBasic(Guid? projectId, [FromQuery] string? searchString,
|
||||
[FromQuery] int pageNumber = 1, [FromQuery] int pageSize = 10)
|
||||
{
|
||||
const int pageSize = 10; // Fixed page size for pagination
|
||||
|
||||
// Log API entry with context
|
||||
_logger.LogInfo("Fetching employees. ProjectId: {ProjectId}, SearchString: {SearchString}, PageNumber: {PageNumber}",
|
||||
projectId ?? Guid.Empty, searchString ?? "", pageNumber);
|
||||
|
Loading…
x
Reference in New Issue
Block a user