Created
June 22, 2011 15:21
-
-
Save waldyrfelix/1040326 to your computer and use it in GitHub Desktop.
Exemplo de Required aplicado
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel.DataAnnotations; | |
namespace AppWeb.ViewModels | |
{ | |
public class LoginViewModel | |
{ | |
[Required(ErrorMessage = "Login é um campo obrigatório")] | |
public string Login { get; set; } | |
[Required(ErrorMessage = "Senha é um campo obrigatório")] | |
public string Senha { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment