Exemplo n.º 1
0
        public ActionResult VideoCategoryUpdate(FormCollection collection)
        {
            VideoCategory d = new VideoCategory();

            d.VideoCategoryID = Convert.ToInt32(collection["VideoCategoryID"]);

            d.CategoryName = collection["CategoryName"];

            d.update();

            return(RedirectToAction("VideoCategoryList"));
        }