public void DBOperation(Constants.Action command, Transaction_Feed item = null, List <long> IDs = null) { switch (command) { case Constants.Action.Insert: client.InsertTransactionFeed(item); break; case Constants.Action.Delete: client.DeleteTransactionFeed(IDs); break; case Constants.Action.Update: client.UpdateTransactionFeed(IDs); break; default: break; } }