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)); }
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)); }