public IActionResult Get() { try { return(Ok(_ingredienteRepositorio.ObterTodos())); //if(condicao == false) //{ // return BadRequest("") // } }catch (Exception ex) { return(BadRequest(ex.ToString())); } }
public IEnumerable <Ingredientes> Get() { return(_IIngredientesRepositorio.ObterTodos()); }