public IHttpActionResult Get(Guid id)
        {
            var guild = _guilds.SingleOrDefault(i => i.Id == id);
            var links = _hateoas.Generate(guild);

            return(guild != null?Ok(new { data = guild, links }) : NotFound() as IHttpActionResult);
        }
Example #2
0
        public IHttpActionResult Get(Guid id)
        {
            var member = _members.SingleOrDefault(i => i.Id == id);
            var links  = hateoas.Generate(member);

            return(member != null?Ok(new { data = member, links }) : NotFound() as IHttpActionResult);
        }
        public IHttpActionResult Get(Guid id)
        {
            var invite = _invites.SingleOrDefault(i => i.Id == id);
            var links  = _hateoas.Generate(invite);

            return(invite != null?Ok(new { data = invite, links }) : NotFound() as IHttpActionResult);
        }
Example #4
0
 public TOutput Generate(object source)
 {
     return(GenerateCustom(_hateoas.Generate(source)));
 }