public bool DeleteProduct(int id) { if (repository.Delete(id)) { return(true); } else { return(false); } }
public Product ListDelete(int id) { var result = _inventory.Delete(id); return(result); }