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