Пример #1
0
 public IActionResult Upload([FromForm] IFormFile videoFile, [FromForm] IFormFile thumbnailFile, [FromForm] string title, [FromForm] string description)
 {
     VideoService.Upload(VideoService.GenerateVideo(videoFile, thumbnailFile, title, description, VideoService.GenerateId()));
     return(RedirectToPage("/Videos"));
 }