Beispiel #1
0
 public static VideoInfo FromVideoData(VideoData video)
 {
     return new VideoInfo
     {
         Id = video.Id,
         Name = video.Name,
         Description = video.Description,
         Origin = video.Origin,
         UploadTime = video.UploadTime,
         PlayCount = video.PlayCount,
         CanView = video.CanView,
         Url = video.Url,
         CategoryId = video.VideoCategoryId.ToString()
     };
 }
Beispiel #2
0
 public void DeleteVideo(VideoData video)
 {
     this.VideoRepository.DeleteVideo(video);
 }
Beispiel #3
0
 public void UpdateVideo(VideoData video)
 {
     this.VideoRepository.UpdateVideo(video);
 }
Beispiel #4
0
 public void AddVideo(VideoData video)
 {
     this.VideoRepository.AddVideo(video);
 }