Ejemplo n.º 1
0
        public async Task <IActionResult> EditAsync(int id, Medicamento medicamento)
        {
            if (id != medicamento.Id)
            {
                return(BadRequest());
            }
            await _medicamentoService.UpdateAsync(medicamento);

            return(RedirectToAction(nameof(Index)));
        }