Last active
September 24, 2016 13:04
-
-
Save tiagoduarte/f300f15ceab19bc90c0a8fba8dbeae7f to your computer and use it in GitHub Desktop.
umbraco contact form part 1
This file contains hidden or 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 ContactForm.Models | |
| { | |
| public class ContactModel | |
| { | |
| [Required] | |
| [Display(Name = "First Name")] | |
| public string FistName { get; set; } | |
| [Required] | |
| [Display(Name = "Last Name")] | |
| public string LastName { get; set; } | |
| [Required] | |
| public string Company { get; set; } | |
| [Required] | |
| public string Position { get; set; } | |
| public string Telephone { get; set; } | |
| [Required] | |
| public string Email { get; set; } | |
| [Required] | |
| [Display(Name = "Message")] | |
| public string Enquire { get; set; } | |
| public string SuccessMessage { get; set; } | |
| public ContactModel() | |
| { | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment