Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public class Opcional
  2. {
  3. public Opcional()
  4. {
  5. this.Diarias = new HashSet<Diaria>();
  6. }
  7. [Key]
  8. public int OpcionalId { get; set; }
  9.  
  10. [Required]
  11. public String Descricao { get; set; }
  12.  
  13. [Required]
  14. public decimal Valor { get; set; }
  15.  
  16. public virtual ICollection<Diaria> Diarias { get; private set; }
  17. }
  18.  
  19. <div class="col-md-12">
  20. <div class="col-md-2">@Html.LabelFor(model => model.Valor)</div>
  21. <div class="col-md-10">
  22. @Html.EditorFor(model => model.Valor)
  23. @Html.ValidationMessageFor(model => model.Valor)
  24. </div>
  25. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement