@[email protected] to > [email protected]English • 1 year agoAnon discovers .NETprogramming.devimagemessage-square84fedilinkarrow-up1317
arrow-up1317imageAnon discovers .NETprogramming.dev@[email protected] to > [email protected]English • 1 year agomessage-square84fedilink
minus-square@[email protected]linkfedilinkEnglish6•1 year 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-square@[email protected]linkfedilinkEnglish4•1 year 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.