I want to validate my model to accept only 10 numbers and the number should not start with 700.
Any idea how can I do it using data annotation?
[Required(ErrorMessage = "This field is required ")]
[StringLength(10, ErrorMessage = " CR should be 10 digits")]
public string CR_Number { get; set; }
^(?!700)\d{10}$