public IActionResult Edit(LeaderBoard leaderBoard, string id)
        {
            leaderBoard.Username = id;
            LeaderBoardDBConnector.Update(Constants.DATA_SOURCE, leaderBoard);

            return Redirect("/LeaderBoard");
        }
Ejemplo n.º 2
0
        public void TestUpdate()
        {
            LeaderBoard userRank = new LeaderBoard();

            userRank.Username = "******";
            userRank.Score    = 40;
            Assert.True(LeaderBoardDBConnector.Update(dataSource, userRank));
        }