Ejemplo n.º 1
0
    public void DBOperation(Constants.Action command, Notification notification = null, List <int> nid = null)
    {
        switch (command)
        {
        case Constants.Action.Insert:
            client.InsertNotification(notification);
            break;

        case Constants.Action.Delete:
            client.DeleteNotification(nid);
            break;

        case Constants.Action.Update:
            client.UpdateNotification(notification);
            break;

        default:
            break;
        }
    }