public ActionResult Upload(Video video, HttpPostedFileBase file) { video.FileName = file.FileName; video.FileData = file.InputStream; video.AddedOn = DateTime.UtcNow; video.VideoStatusEnum = Shared.Enums.VideoStatus.Pending; var videoProcessor = new VideoProcessor(_repository); videoProcessor.SaveVideo(video); return RedirectToAction("Index"); }
public ActionResult Delete(int videoID) { var videoProcessor = new VideoProcessor(_repository); videoProcessor.DeleteVideo(videoID); return RedirectToAction("Index"); }