Example #1
0
        public Dossier Get(long id)
        {
            Party party = new PartyHandler().Get(19);

              return new Dossier
              {
            Id = id,
            Title = string.Format("Dossier no. {0}", id),
            Links = new AtomLinkList
            {
              new AtomLink(typeof(DossierDocumentList).CreateUri(new { id = id }), CMSConstants.DocumentsLinkRelType, CMSConstants.CMSMediaTypeId, "Documents"),
              //new AtomLink("documents", CMSConstants.DocumentsLinkRelType, CMSConstants.CMSMediaTypeId, "Documents"),
              new AtomLink(party.CreateUri(), CMSConstants.PartyLinkRelType, CMSConstants.CMSMediaTypeId, party.FullName)
            }
              };
        }
Example #2
0
        public Dossier Get(long id)
        {
            Party party = new PartyHandler().Get(19);

            return(new Dossier
            {
                Id = id,
                Title = string.Format("Dossier no. {0}", id),
                Links = new AtomLinkList
                {
                    //new AtomLink(typeof(DossierDocumentList).CreateUri(new { id = id }), CMSConstants.DocumentsLinkRelType, CMSConstants.CMSMediaTypeId, "Documents"),
                    new AtomLink("documents", CMSConstants.DocumentsLinkRelType, CMSConstants.CMSMediaTypeId, "Documents"),
                    new AtomLink(party.CreateUri(), CMSConstants.PartyLinkRelType, CMSConstants.CMSMediaTypeId, party.FullName)
                }
            });
        }