In my code, i use IncludeFile to include files....
But, this works:
@IncludeFile("Product.cshtml")
This does not work:
@if (assortmentId.Count() == 0) { IncludeFile("Product..cshtml"); }
This gives me the error:
No overload for method 'IncludeFile' takes 1 arguments
If give another string to the includefile, it does not throw an error, but the file is not rendered....
@if (assortmentId.Count() == 0) { IncludeFile("Prouct.cshtml", string.Empty); }
I have tried all sorts off variations to test if there is something wrong with the If statement and other possible issues, all test working as expected. Except the IncludeFile...