public IHttpActionResult UpdateDynamicContentPublication(webModel.DynamicContentPublication publication) { var corePublication = publication.ToCoreModel(_expressionSerializer); _dynamicContentService.SavePublications(new[] { corePublication }); return(StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult CreateDynamicContentPublication(webModel.DynamicContentPublication publication) { var corePublication = publication.ToCoreModel(_expressionSerializer); _dynamicContentService.SavePublications(new[] { corePublication }); return(GetDynamicContentPublicationById(corePublication.Id)); }
public IHttpActionResult UpdateDynamicContentPublication(webModel.DynamicContentPublication publication) { _dynamicContentService.UpdatePublications(new coreModel.DynamicContentPublication[] { publication.ToCoreModel() }); return(StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult CreateDynamicContent(webModel.DynamicContentPublication publication) { var retVal = _dynamicContentService.CreatePublication(publication.ToCoreModel()); return(GetDynamicContentPublicationById(retVal.Id)); }