internal void CompleteMatch(MyMatch match) { match.MatchCompleted(); MyMatch matchtoupdate = context.Matches.Where(m => m.MatchId == match.MatchId).FirstOrDefault(); context.Entry(matchtoupdate).CurrentValues.SetValues(match); }
internal void CompleteSummoner(MySummoner summoner) { summoner.SummonerCompleted(); MySummoner sumtoupdate = context.Summoners.Where(s => s.SummonerId == summoner.SummonerId).FirstOrDefault(); context.Entry(sumtoupdate).CurrentValues.SetValues(summoner); }