Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify MVC Controller validation logic #1779

Open
hikalkan opened this issue Jan 16, 2017 · 3 comments
Open

Simplify MVC Controller validation logic #1779

hikalkan opened this issue Jan 16, 2017 · 3 comments

Comments

@hikalkan
Copy link
Member

see #1756 (comment)

@worthy7
Copy link
Contributor

worthy7 commented Jan 27, 2017

Hello.

How about a filter which grabs the posted model, checks it, and then return it and the original view (complete with validation error messages).

@hikalkan
Copy link
Member Author

That can be an option, but it also has some assumptions. What if you want to return another view or another type of response?

@111Binary
Copy link

you can apply that what the same idea of Unit Of Work , it is applied by default and we can disable it by special attribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants