public async Task <IActionResult> Edit([FromBody] CmsDownload parm)
 {
     parm.SiteGuid = SiteTool.CurrentSite?.Guid;
     //处理文件类型
     parm.FileType = FileHelper.GetFileExt(parm.FileUrl);
     return(Ok(await _downloadService.UpdateAsync(parm)));
 }
Example #2
0
 public async Task <ApiResult <string> > Edit(CmsDownload parm)
 {
     parm.SiteGuid = SiteTool.CurrentSite?.Guid;
     //处理文件类型
     parm.FileType = FileHelper.GetFileExt(parm.FileUrl);
     return(await _downloadService.UpdateAsync(parm));
 }
Example #3
0
 public async Task <ApiResult <string> > Edit(CmsDownload parm)
 {
     //处理文件类型
     parm.FileType = FileHelper.GetFileExt(parm.FileUrl);
     return(await _downloadService.UpdateAsync(parm));
 }