title: MVC3 Model validation not working on a double
body: <p>I have a problem with yhe validation in MVC, my model has a double property and when I submit 10.30 or anything with "." inside it tells me that "The value '10.30' is not valid for Price".
  I did some research and they say that model validation should be Culture invariant, I was thinking that it could be the problem since my browser and server is in french but it should'nt.</p>
  
  <p>Here's my code :</p>
  
  <pre><code>[HttpPost]
          [ValidateAntiForgeryToken]
          [Authorize(Roles = "Admin")]
          [ValidateInput(false)]
          public virtual ActionResult Edit(AuctionModel model)
          {
              if (ModelState.IsValid)
              {
                  //do the work
              }
              return View(model);
          }
  
  public class AuctionModel
      {
          public string Id { get; set; }
          [Required(ErrorMessageResourceType = typeof(Strings), ErrorMessageResourceName = "FieldMandatory")]
          [LocalizedDisplayName("Title")]
          public string Title { get; set; }
          [Required(ErrorMessageResourceType = typeof(Strings), ErrorMessageResourceName = "FieldMandatory")]
          [LocalizedDisplayName("Description")]
          public string Description { get; set; }
          [Required(ErrorMessageResourceType = typeof(Strings), ErrorMessageResourceName = "FieldMandatory")]
          [LocalizedDisplayName("Photo")]
          public string Photo { get; set; }
          [Required(ErrorMessageResourceType = typeof(Strings), ErrorMessageResourceName = "FieldMandatory")]
          [LocalizedDisplayName("StartDate")]
          public DateTime StartDate { get; set; }
          [Required(ErrorMessageResourceType = typeof(Strings), ErrorMessageResourceName = "FieldMandatory")]
          [LocalizedDisplayName("Price")]
          public double Price { get; set; }
  }
  </code></pre>
  
  <p>Thanks for the help!</p>