pub async fn create( map_id: i32, new_layer: LayerDto, pool: &SharedPool, ) -> Result<LayerDto, ServiceError>
Create a new layer in the database.
If the connection to the database could not be established.