axuno / Volleyball-League

Volleyball League is an open source sports platform that brings everything necessary to organize and to run a league.
https://volleyball-liga.de
MIT License
19 stars 4 forks source link

Add ModelState validation checks for all controller actions #204

Closed axunonb closed 2 weeks ago

axunonb commented 2 weeks ago

Introduced validation checks for ModelState.IsValid at the beginning of controller actions. If the model state is invalid, the actions now return appropriate HTTP responses such as BadRequest(), NotFound(), Forbid(), NoContent(), or redirect to specific views or actions. This enhances the robustness and security of the application by ensuring only valid data is processed.

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud