title: asp.net mvc validation on 2 fields - one must exist if other entered
body: <p>I have 2 text fields, text1 and text2, in my view model. I need to validate if text1 is entered then text2 must be entered and vice versa. How can this be achieved in the custom validation in the view model?</p>
  
  <p>thanks.</p>