public async Task <IActionResult> GetEmployeesHealthDeclarationAsync( int pageSize = 10, int pageNumber = 1, int?OrganizationId = null, int?SiteId = null, bool isHealthDeclaration = false) { var response = await HealthService.GetEmployeeHealteDeclarationAsync(pageSize, pageNumber, OrganizationId, SiteId, isHealthDeclaration); response.Model = response.Model.Where(x => x.DeclarationID > 0 && isHealthDeclaration || x.DeclarationID == 0 && !isHealthDeclaration); return(response.ToHttpResponse()); }