Let's say I have 2 textboxes in a user registration form
- Username
User is required to fill up 1 of them but not both.
How can this be done using ASP.NET Core model validation?
Adding [Required] attribute on both Email and Username properties did not achieve the objective