public DoubleLeagueMatchModel ResetMatch(DoubleLeagueMatchModel doubleLeagueMatchModel, int matchId) { if (doubleLeagueMatchModel == null) { throw new ArgumentNullException(nameof(doubleLeagueMatchModel)); } DeleteAllGoals(matchId); return(ResetDoubleLeagueMatch(doubleLeagueMatchModel)); }
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); }
public void UpdateDoubleLeagueMatch(DoubleLeagueMatchModel match) { // Do nothing }