title: ASP.NET, MVC 5, PostalCode Validation, Numberpicker
body: <p>I don't want the PostalCode field to be required, but I do want to use the   <code>[DataType(DataType.PostalCode)]</code> Annotation to validate entries when made.  </p>
  
  <p>I'd also like to know how to eliminate the numberpicker property in this field when it displays on the <code>Create.cshtml</code> page.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel.DataAnnotations;
  using System.Linq;
  using System.Web;
  
  namespace Testimonial.Models
  {
      // Collection of User Input fields
      public class Client
      {
          public virtual int ClientId { get; set; }
          [Required]
          [StringLength(160)]
          [Display(Name="Business Name")]
          public virtual string BizName { get; set; }
          [StringLength(160)]
          [Display(Name="First Name")]
          public virtual string FirstName { get; set; }
          [StringLength(160)]
          [Display(Name = "Last Name")]
          public virtual string LastName { get; set; }
          [StringLength(160)]
          public virtual string WebSite { get; set; }
          [StringLength(160)]
          public virtual string Address { get; set; }
          [StringLength(160)]
          public virtual string City { get; set; }
          public virtual Enum.State State { get; set; }
          [DataType(DataType.PostalCode)]
          public virtual int Postalcode { get; set; }
          [DataType(DataType.PhoneNumber)]
          public virtual string Phone { get; set; }
          [DataType(DataType.EmailAddress)]
          public virtual string Email { get; set; }
          [Display(Name = "Service Type")]
          public virtual int ServiceTypeId { get; set; }
          public virtual ServiceType ServiceType { get; set; }
          [Display(Name="Testimonial")]
          public virtual int ReviewId { get; set; }
          //[Required(ErrorMessage="You must enter a testimonial.")]
          public virtual Review Review { get; set; }
      }
  }
  </code></pre>