use anyhow::Error; use super::Service; use crate::domain::typ::{ entity, model::{self, TypLoeschenInput}, }; impl Service { pub async fn typ_loeschen(&self, input: TypLoeschenInput) -> Result { let typ_loeschen = entity::TypLoeschen { id: input.id }; let typ = self.repo.typ_loeschen(&self.db, &typ_loeschen).await?; Ok(typ) } }