Geeks With Blogs
Doug.Instance Improving the world one post at a time December 2012 Entries
Simple MVC Imperative Validation
After looking at FluentValidation, I decided that most of what I needed was a way to do server-side validation of more complicated rules. While this is something FluentValidation does, it seemed like more than I needed so I set out to create a simple extension method to do what I needed. While it is still not necessarily perfect, it is simple and works. 1: public static void Validate<T, TResult>(this Controller controller, T model, Expression<Func<T, TResult>> expression, Func<TResult, ......

Posted On Wednesday, December 26, 2012 3:59 PM

Copyright © Doug Lampe | Powered by: GeeksWithBlogs.net