I am trying to create a user model with username and password.
I dont want the password to be displayed in the api response, but it is required on signup. So [JsonIgnore] wont work.
Any suggestions?
public class User {
[Required]
public string Username { get; set; }
[Required]
public string Password { get; set; }
}