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));
        }