Exemple #1
0
        public async Task <IActionResult> Put(int id, [FromBody] IngredienteInput obj)
        {
            await _appService.Atualizar(id, obj.Nome, obj.Valor);

            return(Accepted(obj));
        }
Exemple #2
0
        public async Task <IActionResult> Post([FromBody] IngredienteInput obj)
        {
            await _appService.Adicionar(obj.Nome, obj.Valor);

            return(StatusCode(201));
        }