Posted on: 11/30/2014 11:21:02 PM | Views : 423

Please Help me
I want  to learn asp.net mvc . i devolped smal application wich calculate payment
I should have total as decimal but i get 0 as total  when i input rate or amount as decimal   and i get the right answer when i input all values as Intergers (amout and Rate Integer i get right answer.
here model: public class Morgage     {         [Required]         public decimal? Amount { get; set; }         public decimal Rate { get; set; }         public int Year { get; set; }     }
here controller: [HttpPost]         public ActionResult Morgage([Bind(Include = "Amount,Year,Rate")] Morgage m)         {     &nbs ...

Go to the complete details ...