public int DeleteProduct(int id) { _Proservice = new ProductService(); if (_Proservice.Delete(id) == 1) return 1; else return 0; }