public async Task <IActionResult> Put(int id, [FromBody] IngredienteInput obj) { await _appService.Atualizar(id, obj.Nome, obj.Valor); return(Accepted(obj)); }
public async Task <IActionResult> Post([FromBody] IngredienteInput obj) { await _appService.Adicionar(obj.Nome, obj.Valor); return(StatusCode(201)); }