Beispiel #1
0
        public async Task <JsonResult> GetCity(PromptQuery qry)
        {
            var result = await _promptService.GetCity(qry);

            return(Json(result));
        }
Beispiel #2
0
        public async Task <ActionResult <IEnumerable <PromptAnswer> > > GetCity([FromBody] PromptQuery query)
        {
            var result = await _promptService.GetCity(query);

            return(Ok(result));
        }