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)); }
public IHttpActionResult UpdateDynamicContentFolder(webModel.DynamicContentFolder folder) { _dynamicContentService.UpdateFolder(folder.ToCoreModel()); return(StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult CreateDynamicContentFolder(webModel.DynamicContentFolder folder) { var retVal = _dynamicContentService.CreateFolder(folder.ToCoreModel()); return(GetDynamicContentFolderById(retVal.Id)); }