Exemple #1
0
        /// <summary>
        ///     更新Download信息
        /// </summary>
        /// <param name="dto">ViewModel</param>
        public void UpdateDownload(DownloadEntity dto)
        {
            DownloadDO info = dto.ConvertToModel();

            new MediaRepository().UpdateDownload(info);
            MediaCommon.cache_Download.Remove(info.DownloadId);
        }
Exemple #2
0
        /// <summary>
        ///     新增Download信息
        /// </summary>
        /// <param name="dto">ViewModel</param>
        public void AddDownload(DownloadEntity dto)
        {
            DownloadDO info = dto.ConvertToModel();

            new MediaRepository().AddDownload(info);
        }