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)); }
public IHttpActionResult UpdateDynamicContent(webModel.DynamicContentItem contentItem) { _dynamicContentService.UpdateContents(new coreModel.DynamicContentItem[] { contentItem.ToCoreModel() }); return(StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult CreateDynamicContent(webModel.DynamicContentItem contentItem) { var retVal = _dynamicContentService.CreateContent(contentItem.ToCoreModel()); return(GetDynamicContentById(retVal.Id)); }