public async Task <List <Sentence> > Sentences([FromBody] SentencesReq query) { if (string.IsNullOrEmpty(query.Date) || string.IsNullOrEmpty(query.Keyword)) { return(new List <Sentence>()); } var sentences = await _storageClient.GetSentencesAsync(query.Keyword, DateTime.Parse($"{query.Date} 23:00")); return(sentences); }
public async Task <List <Sentence> > Sentences([FromBody] SentencesReq query) { if (string.IsNullOrEmpty(query.Keyword) || query.Date == null) { return(new List <Sentence>()); } var sentences = await _storageClient.GetSentencesAsync(query.Keyword, query.Date); return(sentences); }