229
Anon discovers .NET (programming.dev)
submitted 4 months ago by starman@programming.dev to c/greentext@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] masterspace@lemmy.ca 6 points 4 months ago

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.

[-] AdamBomb@lemmy.sdf.org 4 points 4 months ago

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.

this post was submitted on 09 Jun 2024
229 points (79.6% liked)

> Greentext

7512 readers
2 users here now

founded 2 years ago
MODERATORS