public IHttpActionResult UpdateDynamicContent(webModel.DynamicContentItem contentItem)
        {
            var coreItem = contentItem.ToCoreModel();

            _dynamicContentService.SaveContentItems(new[] { coreItem });
            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult CreateDynamicContent(webModel.DynamicContentItem contentItem)
        {
            var coreItem = contentItem.ToCoreModel();

            _dynamicContentService.SaveContentItems(new[] { coreItem });
            return(GetDynamicContentById(coreItem.Id));
        }
コード例 #3
0
 public IHttpActionResult UpdateDynamicContent(webModel.DynamicContentItem contentItem)
 {
     _dynamicContentService.UpdateContents(new coreModel.DynamicContentItem[] { contentItem.ToCoreModel() });
     return(StatusCode(HttpStatusCode.NoContent));
 }
コード例 #4
0
        public IHttpActionResult CreateDynamicContent(webModel.DynamicContentItem contentItem)
        {
            var retVal = _dynamicContentService.CreateContent(contentItem.ToCoreModel());

            return(GetDynamicContentById(retVal.Id));
        }