public void DBOperation(Constants.Action command, Product_Common item = null, List <long> ids = null) { switch (command) { case Constants.Action.Insert: client.InsertCommonProduct(item); break; case Constants.Action.Delete: client.DeleteCommonProduct(ids); break; default: break; } }