private void Include(IList<string> includes, Action action)
{
if (includes != null)
{
foreach (var include in includes)
action(<add include here>);
}
}
I want to call it like that
this.Include(includes, _context.Cars.Include(<NEED TO PASS each include to here>));
The idea is pass each include to the method.