示例#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()
     };
 }
示例#2
0
 public void DeleteVideo(VideoData video)
 {
     this.VideoRepository.DeleteVideo(video);
 }
示例#3
0
 public void UpdateVideo(VideoData video)
 {
     this.VideoRepository.UpdateVideo(video);
 }
示例#4
0
 public void AddVideo(VideoData video)
 {
     this.VideoRepository.AddVideo(video);
 }