You need to pass an object of type BoardCertificate to your SearchBoardCertificationRepo method
@foreach (var certi in repo.SearchBoardCertificationRepo(cert))
where "cert" is something of type BoardCertificate. We don't have your code or know what you have available or what your methods do so it is impossible to give any more specific advice.
It looks like your method just searches on surname so if you know what the surname is to search on, this should work
@foreach (var certi in repo.SearchBoardCertificationRepo(new BoardCertificate{lastname="Smith"} ))
As a side note, your code might be open to SQL injection attacks.