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() }; }
public void DeleteVideo(VideoData video) { this.VideoRepository.DeleteVideo(video); }
public void UpdateVideo(VideoData video) { this.VideoRepository.UpdateVideo(video); }
public void AddVideo(VideoData video) { this.VideoRepository.AddVideo(video); }