public async Task <IActionResult> ExportCv(Guid id, string type = "docx") { var file = await _cvService.ExportCVAsync(id, _env.WebRootPath, type); return(File(file.FileContents, file.ContentType, file.FileName)); }