public IHttpActionResult Get(long id)
        {
            Badge item = Logic.Get(id);

            if (item == null)
            {
                return(NotFound());
            }

            return(Ok(item));
        }
        private List <BadgeDisplay> EarnedBadges(Account account)
        {
            List <Attainment>   items  = AttainmentLogic.GetByAccount(account.Id).ToList();
            List <BadgeDisplay> earned = new List <BadgeDisplay>();

            foreach (Attainment a in items)
            {
                earned.Add(new BadgeDisplay(BadgeLogic.Get(a.BadgeId).Title, a.DateEarned.ToShortDateString()));
            }
            return(earned);
        }