Change key to id and value titleinfo to title and type

Change search with two linq statments