public async Task <IActionResult> BuildCode([BindRequired] Guid id) { var result = await _service.BuildCode(id); var path = Path.Combine(_commonOptions.TempPath, _codeGeneratorOptions.BuildCodePath, result.Data.Id + ".zip"); return(PhysicalFile(path, "application/octet-stream", HttpUtility.UrlEncode(result.Data.Name), true)); }
public async Task <IActionResult> BuildCode([BindRequired] Guid id) { var result = await _service.BuildCode(id); return(PhysicalFile(result.Data.ZipPath, "application/octet-stream", HttpUtility.UrlEncode(result.Data.Name), true)); }