public IHttpActionResult GetBadge(long id)
        {
            var b = badgeSvc.GetBadge(id);

            if (b == null)
            {
                return(NotFound());
            }
            return(Ok(BadgeDto.FromBadge(b)));
        }
 // GET: api/Badges
 public IEnumerable <BadgeDto> GetBadges()
 {
     return(badgeSvc.GetBadges().Select(b => BadgeDto.FromBadge(b)));
 }