starman@programming.dev to > GreentextEnglish · 6 months agoAnon discovers .NETprogramming.devimagemessage-square83fedilinkarrow-up1310arrow-down179
arrow-up1231arrow-down1imageAnon discovers .NETprogramming.devstarman@programming.dev to > GreentextEnglish · 6 months agomessage-square83fedilink
minus-squaremasterspace@lemmy.calinkfedilinkEnglisharrow-up6·6 months agoIn .NET to make a controller you just make a class that extends controller and then a public function that returns a ViewResult, JsonResult, etc. No black box dependency injection required.
minus-squareAdamBomb@lemmy.sdf.orglinkfedilinkEnglisharrow-up4·6 months agoIt can be even simpler than that. With the so-called “Minimal API” framework lets you define an entire web app with simple functions. This article shows some samples of what it looks like to create a web app in this style.
In .NET to make a controller you just make a class that extends controller and then a public function that returns a ViewResult, JsonResult, etc.
No black box dependency injection required.
It can be even simpler than that. With the so-called “Minimal API” framework lets you define an entire web app with simple functions. This article shows some samples of what it looks like to create a web app in this style.