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

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

            return(StatusCode(201));
        }