Example #1
0
        public IActionResult Delete(int id)
        {
            _context.DeleteProduct(id);

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