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))); }
public async Task <ApiResult <string> > Edit(CmsDownload parm) { parm.SiteGuid = SiteTool.CurrentSite?.Guid; //处理文件类型 parm.FileType = FileHelper.GetFileExt(parm.FileUrl); return(await _downloadService.UpdateAsync(parm)); }
public async Task <ApiResult <string> > Edit(CmsDownload parm) { //处理文件类型 parm.FileType = FileHelper.GetFileExt(parm.FileUrl); return(await _downloadService.UpdateAsync(parm)); }