FlatFeeDiscount

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

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; }