public async Task <IActionResult> Get(string name) { try { var results = await _repo.GetAllProductAsyncByNameAsync(name, true); return(Ok(results)); } catch (System.Exception) { return(this.StatusCode(StatusCodes.Status500InternalServerError, "Banco Dados Falhou")); } }