13 lines
254 B
Rust
13 lines
254 B
Rust
|
use anyhow::Error;
|
||
|
|
||
|
use crate::domain::gruppe::model;
|
||
|
|
||
|
use super::Service;
|
||
|
|
||
|
impl Service {
|
||
|
pub async fn gruppe_alle(&self) -> Result<Vec<model::Gruppe>, Error> {
|
||
|
let gruppe = self.repo.gruppe_alle(&self.db).await?;
|
||
|
Ok(gruppe)
|
||
|
}
|
||
|
}
|