13 lines
254 B
Rust
Raw Normal View History

2024-12-06 14:06:27 +01:00
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)
}
}