diff --git a/Yavsc/Models/HairCut/BrusherProfile.cs b/Yavsc/Models/HairCut/BrusherProfile.cs index ec13bfdc..de413385 100644 --- a/Yavsc/Models/HairCut/BrusherProfile.cs +++ b/Yavsc/Models/HairCut/BrusherProfile.cs @@ -1,10 +1,13 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; -using Yavsc.Models.Workflow; +using System.Collections.Generic; namespace Yavsc.Models.Haircut { + using Workflow; + using Relationship; + public class BrusherProfile : ISpecializationSettings { public BrusherProfile() @@ -17,9 +20,13 @@ namespace Yavsc.Models.Haircut get; set; } + [JsonIgnore,ForeignKey("UserId")] public virtual PerformerProfile BaseProfile { get; set; } + [Display(Name="Portfolio")] + public virtual List Links { get; set; } + [Display(Name="Rayon d'action"),DisplayFormat(DataFormatString="{0} km")] diff --git a/Yavsc/Models/Relationship/Link.cs b/Yavsc/Models/Relationship/Link.cs index 8c433db4..6c8c27f7 100644 --- a/Yavsc/Models/Relationship/Link.cs +++ b/Yavsc/Models/Relationship/Link.cs @@ -1,11 +1,20 @@ +using System.ComponentModel.DataAnnotations; + namespace Yavsc.Models.Relationship { public class Link { - + [Display(Name="Hyper référence")] public string HRef { get; set; } - public string Rel { get; set; } + + [Display(Name="Methode Http attendue coté serveur")] public string Method { get; set; } + [Display(Name="Classe de lien")] + public string Rel { get; set; } + + [Display(Name="Type mime du contenu attendu côté client")] + public string ContentType { get; set; } + } }