Ejemplo n.º 1
0
        public ActionResult AddIngredient(IngredientLabel ingredient)
        {
            _ingredienteService.Adicionar(ingredient);

            return(Ok());
        }
Ejemplo n.º 2
0
        public ActionResult <ReceitaIngrediente> PostReceita([FromBody] ReceitaIngrediente ingrediente)
        {
            ingredienteService.Adicionar(ingrediente);

            return(CreatedAtAction("GetIngrediente", new { id = ingrediente.Id }, ingrediente));
        }