public void TestUpdate()
        {
            Video video = new Video();

            video.Title = "Test";
            video.Url   = "www.google.com";
            Assert.True(VideoDBConnector.Update(dataSource, video));
        }
예제 #2
0
        public IActionResult Edit(Video video, int id)
        {
            VideoDBConnector.Update(Constants.DATA_SOURCE, video);

            return(Redirect("/Videos"));
        }