常用方法
常用方法
常用方法
常用方法
public async Task <IActionResult> SearchTA([FromServices] IReportsRepository data, [FromBody] TypeaheadParms parms) { if (!ModelState.IsValid) { return(new BadRequestResult()); } TypeaheadResults results = await data.GetTypeAheadResults(parms); return(Content(JsonConvert.SerializeObject(results), "application/json")); }