Ejemplo n.º 1
0
 public void AddLink(string hypertextReference, string relationship, HttpVerbs verb)
 {
     if (!Links.Any(x => x.Href == hypertextReference && x.Rel == relationship && x.Type == Enum.GetName(verb.GetType(), verb)?.ToUpper()))
     {
         Links.Add(new CleanLink(hypertextReference, relationship, verb));
     }
 }
 public CleanLink(string relationship, string hypertextReference, HttpVerbs verb)
 {
     Rel  = relationship;
     Href = hypertextReference;
     Type = Enum.GetName(verb.GetType(), verb)?.ToUpper();
 }