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