Asp.net Search function issues

Asp.net Search function issues

I have a simple search function that allows me to search for certain words from different tables. This is annoying as I feel there is a simple fix i'm not seeing here. Can someone assist? Thank you in advance.

I have a simple search function that allows me to search for certain words from different tables. This is annoying as I feel there is a simple fix i'm not seeing here. Can someone assist? Thank you in advance.

ViewModel
IEnumerable<Owner> Owners {get; set;}
IEnumerable<Car> Cars {get; set;}
Search Method
public IEnumerable<ViewModel> Search(string search)
 {
   ViewModel searchVM = new ViewModel();

return searchVM.Owner.Where(o => o.Name.Contains(search)) || searchVM.Cars.Where(c => c.Model.Contains(search)); }

Error
Operator '||' cannot be applied to operands of type 'IEnumerable<Owner>' and 
'IEnumerable<Car>'


c-sharp asp.net linq

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire ASP.Net Developers

Looking to outsource your asp dot net development requirement? ASP.Net is a special feature of the DOT Net framework created by Microsoft. At [HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io"), we have a team of experienced...

User Role Report in asp.net core [part 01] || LINQ

LIKE | COMMENT | SHARE | SUBSCRIBE In this video we will discuss how to join multiple table using LINQ (Language Integrated Query). Source code link : https:...

User Role Report in asp.net core [part 02] || LINQ

LIKE | COMMENT | SHARE | SUBSCRIBE In this video we will discuss how to join multiple table using LINQ (Language Integrated Query). Source code link : https:...

Various ways of redirecting a request in Asp.Net Core

ASP.NET Core web applications often need to redirect a request to another resource based on some condition. There are multiple ways in which you can accomplish this task in ASP.NET Core MVC and Razor&#160;&#8230;

Routing in MVC - ASP.NET Core Demystified

ASP.NET Core MVC has introduced quite a few concepts that new (or new-to-ASP.NET) web developers might have some difficulty getting caught up with. My ASP.NET Core Demystified series is designed to help these developers get started building their own custom, full-fledged, working AASP.NET Core applications. In