FlatFeeDiscount

This commit is contained in:
Paul Schneider 2017-03-02 13:25:20 +01:00
commit b2eaed3cf2
8 changed files with 39 additions and 27 deletions

View file

@ -132,5 +132,8 @@ namespace Yavsc.Models.Haircut
public decimal CarePrice { get; set; }
[Display(Name="Remise au forfait coupe+technique"),DisplayFormat(DataFormatString="{0:C}")]
public decimal FlatFeeDiscount { get; set; }
}
}

View file

@ -11,7 +11,14 @@ namespace Yavsc.Models.Haircut
{
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
HairPrestation Prestation { get; set; }
[Required]
public long PrestationId { get; set; }
[ForeignKey("PrestationId")]
public virtual HairPrestation Prestation { get; set; }
[Required]
public Location Location { get; set; }