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