View difference between Paste ID: VjeHMjSy and n1hNtxwW
SHOW: | | - or go back to the newest paste.
1
public static bool IsValid(this ValidationHelper source, bool isPost, params string[] fields) {
2-
    return isPost && source.IsValid(fields);
2+
    return !isPost || source.IsValid(fields);
3
}
4
5
6