Exemplo n.º 1
0
        public async Task <IActionResult> DownloadPackage(
            [FromQuery] Guid personUniqueId,
            [FromQuery] string documentUniqueId,
            [FromServices] DocumentsManager manager)
        {
            var packageBytes = await manager.CreatePackageAsync(User.Identity.Name, personUniqueId, documentUniqueId);

            return(File(packageBytes, "application/zip", $"{documentUniqueId}.zip"));
        }