/// <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); }
/// <summary> /// 新增Download信息 /// </summary> /// <param name="dto">ViewModel</param> public void AddDownload(DownloadEntity dto) { DownloadDO info = dto.ConvertToModel(); new MediaRepository().AddDownload(info); }