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