Example #1
0
        public async Task <ActionResult <MapLayerResponse> > PostCreateMapLayerAsync(
            [FromServices] NaheulbookExecutionContext executionContext,
            [FromRoute] int mapId,
            [FromBody] MapLayerRequest request
            )
        {
            var map = await _mapService.CreateMapLayerAsync(executionContext, mapId, request);

            return(_mapper.Map <MapLayerResponse>(map));
        }