public async Task <IActionResult> UploadAndValidatePackage( [FromServices] ICryptoProviderService cryptoProvider, [FromServices] DocumentsManager manager, IFormFile attachmentFile) { var result = await manager.UploadAndValidatePackageAsync(cryptoProvider, attachmentFile); return(Json(ApiResponse.Success(result))); }