I am trying to validate input control in Asp.Net MVC. The below code checks if Project name is null and throws validation. I will have some default text in textbox on page load. I have a scenario to check if project name is not null and project name is not "Test Project". Can I do in similar scenario?
[Required(ErrorMessage = "Select Project Name.")]
[DisplayName("Project Type: ")]
public string SelectedProjectName { get; set; }