Beispiel #1
0
        public async Task <ActionResult> UpdateDynamicContentPlace([FromBody] coreModel.DynamicContentPlace contentPlace)
        {
            await _dynamicContentService.SavePlacesAsync(new[] { contentPlace });

            return(NoContent());
        }
Beispiel #2
0
        public async Task <ActionResult <coreModel.DynamicContentPlace> > CreateDynamicContentPlace([FromBody] coreModel.DynamicContentPlace contentPlace)
        {
            await _dynamicContentService.SavePlacesAsync(new[] { contentPlace });

            return(await GetDynamicContentPlaceById(contentPlace.Id));
        }