public IActionResult Delete(int id) { _context.DeleteProduct(id); return(RedirectToAction("Index")); }
public void DeleteProduct(int id) { _context.DeleteProduct(id); }