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);
        }
Exemple #2
0
 public ActionResult <List <BadgeResponse> > All(Guid userID)
 {
     return(badgeService.GetBadgeByUserId(userID));
 }