public IActionResult EliminarArticulo(int IdArticulo) { Articulo articulo = articuloServicio.ObtenerPorId(IdArticulo); articuloServicio.Borrar(articulo); return(RedirectToAction(nameof(Articulos))); }
public IActionResult EliminarArticulo(int IdArticulo) { Articulo articulo = articuloServicio.ObtenerPorId(IdArticulo); articuloServicio.Borrar(articulo); return(RedirectToAction(nameof(Articulos))); }