gothinkster / aspnetcore-realworld-example-app

ASP.NET Core backend implementation for RealWorld
https://realworld.io
MIT License
1.94k stars 549 forks source link

Is it okay to call RestException in a handler? #33

Open VictorioBerra opened 6 years ago

VictorioBerra commented 6 years ago

Should the handler be aware of HTTP/"Rest"? I might argue that the controller should try and retrieve the entity and then throw NotFound();

https://github.com/gothinkster/aspnetcore-realworld-example-app/blob/master/src/Conduit/Features/Articles/Edit.cs#L56