示例#1
0
        public static DataTable DeclineChallenge(Cxt cxt, int challengeID)
        {
            Challenge item = new Challenge(cxt, challengeID);

            item.ChallengeStatusIDE = ChallengeStatusE.Decline;
            item.ChallengeTypeIDE   = ChallengeTypeE.Decline;
            item.Save();
            return(Challenges.GetChallengesByRoomID(cxt, item.RoomID, item.ChallengerUserID));
        }
示例#2
0
        public static DataTable DeleteChallenge(Cxt cxt, int challengeID)
        {
            Challenge item = new Challenge(cxt, challengeID);

            item.ChallengeStatusIDE = ChallengeStatusE.Withdraw;
            item.StatusIDE          = StatusE.Deleted;
            item.Save();
            return(Challenges.GetChallengesByRoomID(cxt, item.RoomID, item.ChallengerUserID));
        }