Пример #1
0
        public ActionResult AddVideo(Video video, HttpPostedFileBase file)
        {
            if (ModelState.IsValid)
            {
                socialService.InsertVideo(video, file);
                socialService.Save();

                return(RedirectToAction("Videos"));
            }

            return(View(video));
        }