The next generation of the Teknik Services. Written in ASP.NET. Fork for blog tags.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ContactViewModel.cs 708B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using Teknik.Areas.Contact.Models;
  4. using System.Linq;
  5. using System.Web;
  6. using Teknik.Models;
  7. using Teknik.ViewModels;
  8. namespace Teknik.Areas.Contact.ViewModels
  9. {
  10. public class ContactViewModel : ViewModelBase
  11. {
  12. [Required]
  13. [Display(Name = "Name")]
  14. public string Name { get; set; }
  15. [Required]
  16. [Display(Name = "Email")]
  17. [DataType(DataType.EmailAddress)]
  18. public string Email { get; set; }
  19. [Display(Name = "Subject")]
  20. public string Subject { get; set; }
  21. [Required]
  22. [Display(Name = "Message")]
  23. public string Message { get; set; }
  24. }
  25. }