Ejemplo n.º 1
0
        public virtual Link GetSelfLink(Faction faction)
        {
            var pathFragment = string.Format("{0}/{1}", PathFragmentBase, faction.FactionId);

            var link = _commonLinkService.GetLink(
                pathFragment,
                Constants.CommonLinkRelValues.Self,
                HttpMethod.Get);

            return link;
        }
Ejemplo n.º 2
0
 public void AddSelfLink(Faction faction)
 {
     faction.AddLink(GetSelfLink(faction));
 }