public IHttpActionResult UpdateDynamicContentFolder(webModel.DynamicContentFolder folder)
        {
            var coreFolder = folder.ToCoreModel();

            _dynamicContentService.SaveFolders(new[] { coreFolder });
            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult CreateDynamicContentFolder(webModel.DynamicContentFolder folder)
        {
            var coreFolder = folder.ToCoreModel();

            _dynamicContentService.SaveFolders(new[] { coreFolder });
            return(GetDynamicContentFolderById(coreFolder.Id));
        }
コード例 #3
0
 public IHttpActionResult UpdateDynamicContentFolder(webModel.DynamicContentFolder folder)
 {
     _dynamicContentService.UpdateFolder(folder.ToCoreModel());
     return(StatusCode(HttpStatusCode.NoContent));
 }
コード例 #4
0
        public IHttpActionResult CreateDynamicContentFolder(webModel.DynamicContentFolder folder)
        {
            var retVal = _dynamicContentService.CreateFolder(folder.ToCoreModel());

            return(GetDynamicContentFolderById(retVal.Id));
        }