Exemple #1
0
    public void DBOperation(Constants.Action command, Merchant item = null, List <Int64> Ids = null)
    {
        switch (command)
        {
        case Constants.Action.Insert:
            client.InsertMerchant(item);
            break;

        case Constants.Action.Delete:
            client.DeleteMerchants(Ids);
            break;

        case Constants.Action.Update:
            client.UpdateMerchant(item);
            break;

        default:
            break;
        }
    }