public async Task <IActionResult> Process([FromForm] IFormFile file) { var result = await _registerService.CalculateChangeAsync(file); if (result.IsFailure) { return(BadRequest(result.Error)); } return(File(result.Value.Data, result.Value.ContentType, result.Value.FileName)); }