Spontaneous.WebApp.Medals.RestaurantAdviserChecker.IfAlreadyHave C# (CSharp) Method

IfAlreadyHave() public method

public IfAlreadyHave ( SpontaneousUserModel statistic ) : bool
statistic Spontaneous.DataModel.SpontaneousUserModel
return bool
        public override bool IfAlreadyHave(SpontaneousUserModel statistic)
        {
            if (statistic != null && statistic.UserMedalsList != null)
            {
                foreach (UserMedal medal in statistic.UserMedalsList)
                {
                    if (medal is RestaurantAdviserMedal) return true;
                }
            }
            return false;
        }