コード例 #1
0
    public void DBOperation(Constants.Action command, Merchant_Commision item = null, List <int> Ids = null, List <Merchant_Commision> commisions = null)
    {
        switch (command)
        {
        case Constants.Action.Insert:
            client.InsertCommision(item);
            break;

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

        case Constants.Action.Update:
            client.UpdateCommisions(commisions);
            break;

        default:
            break;
        }
    }