Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }