Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Opcional
- {
- public Opcional()
- {
- this.Diarias = new HashSet<Diaria>();
- }
- [Key]
- public int OpcionalId { get; set; }
- [Required]
- public String Descricao { get; set; }
- [Required]
- public decimal Valor { get; set; }
- public virtual ICollection<Diaria> Diarias { get; private set; }
- }
- <div class="col-md-12">
- <div class="col-md-2">@Html.LabelFor(model => model.Valor)</div>
- <div class="col-md-10">
- @Html.EditorFor(model => model.Valor)
- @Html.ValidationMessageFor(model => model.Valor)
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement