public async Task <IEnumerable <TextFile> > GetAllTextsAsync() { try { var getText = await _textClient.GetAllTexts(); return(getText); } catch (Exception ex) { throw; } }
public async Task <IEnumerable <TextModel> > FindWordAsync(string word) { if (word != null) { var getText = await _textClient.GetAllTexts(); if (getText != null) { var selectText = getText.Where(x => x.Text.Contains(word)); return(selectText); } } return(null); }
public async Task <IEnumerable <TextFile> > GetAllTextsAsync() { try { var bearerToken = Request.Headers["Authorization"]; _logger.LogInformation($"GetAllTextsAsync {bearerToken} {DateTime.Now}"); var getText = await _textClient.GetAllTexts(); return(getText); } catch (Exception ex) { throw; } }