public void CreateRanking(RankingPers ranking) { DatabaseContextInstance cdl = DatabaseContext.GetContext(); cdl.Rankings.Add(ranking); cdl.SaveChanges(); }
public void SetWinner(String turniername, Guid compID) { DatabaseContextInstance cdl = DatabaseContext.GetContext(); RankingPers rp = cdl.Rankings.Find(compID, turniername); rp.WonFinal = true; cdl.SaveChanges(); }