veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

295
active users

#webapi

0 posts0 participants0 posts today

Question for the .Net developers. When working with a service layer and WebAPI where do you put the user input *format* validation? controller/endpoint, service, or both?

I'm currently using fluentvalidation for format validation, validated at the WebAPI endpoint(s), and business logic validation within the service layer. Any serious formatting issues would cause a model exception, which seems fair as if invalid user data reaches the service layer I consider it exceptional