I am working with asp.net mvc 5 and want to change validation message text. For example,
[Required]
public string name{ get; set; }
I give required validation and the error message appears as : 'The name field is required.' but i want change 'something my text' for all required validations.
I can do this as
[Required (ErrorMessage="something my text")]
but i don't want repeat this for each parameter.