ActivEarth.Server.Service.Competition.BadgeManager.CreateBadge C# (CSharp) Метод

CreateBadge() публичный статический Метод

Creates a new Badge and adds it to the collection.
public static CreateBadge ( int userId, Statistic statistic ) : Badge
userId int
statistic Statistic Statistic being tracked by the badge.
Результат ActivEarth.Objects.Competition.Badges.Badge
        public static Badge CreateBadge(int userId, Statistic statistic)
        {
            Badge newBadge = new Badge(userId, statistic);
            return BadgeDAO.GetBadgeFromBadgeId(BadgeDAO.CreateNewBadge(newBadge));
        }