public async Task <JsonResult> GetCity(PromptQuery qry) { var result = await _promptService.GetCity(qry); return(Json(result)); }
public async Task <ActionResult <IEnumerable <PromptAnswer> > > GetCity([FromBody] PromptQuery query) { var result = await _promptService.GetCity(query); return(Ok(result)); }