Exemple #1
0
        public async Task OnPost(string TextToTranscribe)
        {
            if (string.IsNullOrEmpty(TextToTranscribe))
            {
                IsError = true;
                return;
            }

            try
            {
                var res = await Svc.AddDataToTranscribe(TextToTranscribe);

                IsSuccess = res;
                IsError   = !res;
            }
            catch (Exception ex)
            {
                IsError = true;
            }
        }