Exemplo n.º 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));
        }
Exemplo n.º 2
0
        public Award GetAward(Guid id)
        {
            Award award = Awards.FirstOrDefault(x => x.Id == id);

            return(award);
        }