public async Task <IActionResult> Pesquisar(string str) { try { IList <Produtos> listProdutos = await _service.Pesquisar(str); return(Ok(listProdutos.ToList())); } catch (Exception ex) { return(UnprocessableEntity(new { ex.Message, Status = 422 })); } }