pub async fn create(
map_id: i32,
new_layer: LayerDto,
app_data: &Data<AppDataInner>,
) -> Result<LayerDto, ServiceError>
Expand description
Create a new layer in the database.
§Errors
If the connection to the database could not be established.