Exemplo n.º 1
0
        public void Update(Badge badge)
        {
            List <BadgeResponse> userBadge = badgeService.GetBadgeByUserId(badge.UserID);

            foreach (BadgeResponse b in userBadge)
            {
                if (b.Name == badge.Name)
                {
                    return;
                }
            }
            badgeService.CreateBadge(badge);
        }
Exemplo n.º 2
0
 public ActionResult <List <BadgeResponse> > All(Guid userID)
 {
     return(badgeService.GetBadgeByUserId(userID));
 }