@using UI_SequentMicrosystems.Services @inject PointsService _PointsService @inject IJSRuntime _JSRuntime
@if (RecalculateValues) { } else { }
@code { private bool RecalculateValues = false; private async void DownloadFile() { // Název souboru string fileName = "TESDevice1.csv"; // Vytvoření a spuštění odkazu ke stažení await _JSRuntime.InvokeVoidAsync("DownloadFile", fileName, await _PointsService.CreatePointsFileLines(RecalculateValues)); } }