backend::service::areas

Function create

source
pub async fn create(
    area_kind: AreaKind,
    dtos: Vec<NewAreaDto>,
    pool: &SharedPool,
) -> Result<Vec<AreaDto>, ServiceError>
Expand description

Create a new area in the database.

ยงErrors

If the connection to the database could not be established.