I am developing a client-side and server-side validation for a certain viewModel property.
In the .cshtml file I put this:
.cshtml
@Html.DropDow
You want the validation to happen at both the client and server side and also you looking for an elegant solution then why can try creating a custom ValidationAttribute.
ValidationAttribute