예제 #1
0
        public DoubleLeagueMatchModel ResetMatch(DoubleLeagueMatchModel doubleLeagueMatchModel, int matchId)
        {
            if (doubleLeagueMatchModel == null)
            {
                throw new ArgumentNullException(nameof(doubleLeagueMatchModel));
            }

            DeleteAllGoals(matchId);

            return(ResetDoubleLeagueMatch(doubleLeagueMatchModel));
        }
예제 #2
0
        private DoubleLeagueMatchModel ResetDoubleLeagueMatch(DoubleLeagueMatchModel doubleLeagueMatchModel)
        {
            doubleLeagueMatchModel.StartTime    = null;
            doubleLeagueMatchModel.EndTime      = null;
            doubleLeagueMatchModel.TeamOneScore = 0;
            doubleLeagueMatchModel.TeamTwoScore = 0;
            doubleLeagueMatchModel.MatchStarted = false;
            doubleLeagueMatchModel.MatchEnded   = false;
            doubleLeagueMatchModel.MatchPaused  = false;

            _context.DoubleLeagueMatches.Update(doubleLeagueMatchModel);
            _context.SaveChanges();

            return(doubleLeagueMatchModel);
        }
예제 #3
0
 public void UpdateDoubleLeagueMatch(DoubleLeagueMatchModel match)
 {
     // Do nothing
 }