Files
axum-async-graphql/src/domain/typ/service/typ_loeschen.rs
2026-06-03 22:08:44 +02:00

17 lines
391 B
Rust

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<model::Typ, Error> {
let typ_loeschen = entity::TypLoeschen { id: input.id };
let typ = self.repo.typ_loeschen(&self.db, &typ_loeschen).await?;
Ok(typ)
}
}