2sic / 2sxc

DNN + 2sxc = #DNNCMS - This tool helps web designers and developers prepare great looking content in DNN (DotNetNuke). It's like mixing DNN with Umbraco and Drupal :)
http://2sxc.org
MIT License
145 stars 39 forks source link

Feat: Ensure that new As<...> can use more sources than just ICanBeEntity #3346

Closed iJungleboy closed 5 months ago

iJungleboy commented 5 months ago

I'm submitting a

[x] feature request

...about

[x] Razor templating [x] C# development

Current Behavior / Expected Behavior

ATM the As<CustomType>(...) expects a parameter of type ICanBeEntity, but other APIs such as AsItem(...) can receive many more variants of data.

Goal should be that both can handle the same inputs.

Would replace #3338

Your environment