Exemplo n.º 1
0
        // POST api/values
        public void Post(PublicationModel model)
        {
            switch (model.TYPE)
            {
            case "PagePublished":
                WebApiApplication.PulicationFinished(model.TCMUri, model.URL);
                break;

            case "ComponentUpdated":
                WebApiApplication.ComponentUpdated(model.TCMUri, model.URL);
                break;

            case "ComponentNeedTranslation":
                WebApiApplication.ComponentNeedTranslation(model.TCMUri, model.URL, model.childTCMUri, model.childTitle);
                break;
            }
        }