title: ASP.NET MVC 5 double value always 0.0 in controller
body: <p>In my ASP.NET MVC 5 app I have form where user can enter price. Of course that value isn't always integer so I defined it as double in my Model. And when User enter some value, e.g. 10000.00 and press submit, model sent to controller always have 0.0 value for property price. Any ideas why ?</p>
  
  <p>My property is defined in model as:</p>
  
  <pre><code>        [Required(ErrorMessageResourceType = typeof(Resources), ErrorMessageResourceName = "_errorEmpty")]
          [Display(Name = "_carPrice", ResourceType = typeof(Resources))]
          public Decimal Cijena { get; set; }
  </code></pre>
  
  <p>In my view I'm using it like this:</p>
  
  <pre><code>           &lt;div class="form-group"&gt;
                  @Html.LabelFor(model =&gt; model.Cijena, new { @class = "col-md-2 control-label" })
                  &lt;div class="col-md-10"&gt;
                      @Html.TextBoxFor(model =&gt; model.Cijena, new { @class = "form-control", id = "cijena" })
                      @Html.ValidationMessageFor(model =&gt; model.Cijena)
                  &lt;/div&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>And my Controller: </p>
  
  <pre><code> [HttpPost]
   [ValidateAntiForgeryToken]
   public ActionResult AddNewCar([Bind(Include = "Model, GodinaProizvodnje, GodinaKupnje, DrugiID, Cijena, RegOznaka, RegOd, RegDo, SelectedCityId")] AddCar car)
      {
      .
      .
      .
      }
  </code></pre>
  
  <p>And when model is passed from view to controller on submit value for Price is always 0. I have tried defined property as Decimal, Double, Float ... always 0 <a href="http://prntscr.com/4hel3f" rel="nofollow">http://prntscr.com/4hel3f</a> </p>