示例#1
0
        public bool RemoveAward(Guid id)
        {
            Award tmp = Awards.FirstOrDefault(x => x.Id == id);

            if (tmp == null)
            {
                return(false);
            }
            TableUserAward.Remove(id);
            return(Awards.Remove(tmp));
        }
示例#2
0
        public Award GetAward(Guid id)
        {
            Award award = Awards.FirstOrDefault(x => x.Id == id);

            return(award);
        }