Example #1
0
        public void TestUpdate()
        {
            Resource resource = new Resource();

            resource.Description  = "Test";
            resource.Link         = "some link";
            resource.Title        = "Test Resource";
            resource.ProviderName = "Unit Test";
            Assert.True(ResourceDBConnector.Update(dataSource, resource));
        }
Example #2
0
        public IActionResult Edit(Resource resource, int id)
        {
            ResourceDBConnector.Update(Constants.DATA_SOURCE, resource);

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