public ActionResult AddIngredient(IngredientLabel ingredient) { _ingredienteService.Adicionar(ingredient); return(Ok()); }
public ActionResult <ReceitaIngrediente> PostReceita([FromBody] ReceitaIngrediente ingrediente) { ingredienteService.Adicionar(ingrediente); return(CreatedAtAction("GetIngrediente", new { id = ingrediente.Id }, ingrediente)); }