public IHttpActionResult UpdateDynamicContentPublication(webModel.DynamicContentPublication publication)
        {
            var corePublication = publication.ToCoreModel(_expressionSerializer);

            _dynamicContentService.SavePublications(new[] { corePublication });
            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult CreateDynamicContentPublication(webModel.DynamicContentPublication publication)
        {
            var corePublication = publication.ToCoreModel(_expressionSerializer);

            _dynamicContentService.SavePublications(new[] { corePublication });
            return(GetDynamicContentPublicationById(corePublication.Id));
        }
Exemplo n.º 3
0
 public IHttpActionResult UpdateDynamicContentPublication(webModel.DynamicContentPublication publication)
 {
     _dynamicContentService.UpdatePublications(new coreModel.DynamicContentPublication[] { publication.ToCoreModel() });
     return(StatusCode(HttpStatusCode.NoContent));
 }
Exemplo n.º 4
0
        public IHttpActionResult CreateDynamicContent(webModel.DynamicContentPublication publication)
        {
            var retVal = _dynamicContentService.CreatePublication(publication.ToCoreModel());

            return(GetDynamicContentPublicationById(retVal.Id));
        }