Here is a C# viewmodel example:
public class LoginModel
{
[Required(ErrorMessage = "Email is not specified")]
public string Email { get; set; }
[Required(ErrorMessage = "No password is specified")]
[DataType(DataType.Password)]
public string Password { get; set; }
}
I'm wondering if it's possible to create a Typescript viewmodel with the same attributes for Email and Password. I'm new to JS (and Typescript) so this is a bit confusing for me.