Esempio n. 1
0
    public void DBOperation(string command, Category cat = null, int id = 0)
    {
        switch (command)
        {
        case "Insert":
            client.InsertCategory(cat);
            break;

        case "Delete":
            client.DeleteCategory(id);
            break;

        case "Update":
            //client.UpdateCategory(cat);
            break;

        default:
            break;
        }
    }