Skip to content

Instantly share code, notes, and snippets.

@tiagoduarte
Last active September 24, 2016 13:04
Show Gist options
  • Select an option

  • Save tiagoduarte/f300f15ceab19bc90c0a8fba8dbeae7f to your computer and use it in GitHub Desktop.

Select an option

Save tiagoduarte/f300f15ceab19bc90c0a8fba8dbeae7f to your computer and use it in GitHub Desktop.
umbraco contact form part 1
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