async fn assign_item(&self, cmd: impl AssignItemCmd + 'async_trait) -> eyre::Result<Backlog> {
        let repo = self.provide();
        let mut backlog = repo.get().await.wrap::<OutcommingError>()?;
        backlog
            .assign_item(&cmd.id()?, cmd.assignee()?)
            .wrap::<BusinessLogicError>()?;
        repo.save(backlog.clone()).await.wrap::<OutcommingError>()?;
        Ok(backlog)
    }
/// Assign the specific item to someone.
Assign the specific item to someone.
Assign the specific item to someone .
async fn assign_item(&self, cmd: impl AssignItemCmd + 'async_trait) -> eyre::Result<Backlog> {
        let repo = self.provide();
        let mut backlog = repo.get().await.wrap::<OutcommingError>()?;
        backlog
            .assign_item(&cmd.id()?, cmd.assignee()?)
            .wrap::<BusinessLogicError>()?;
        repo.save(backlog.clone()).await.wrap::<OutcommingError>()?;
        Ok(backlog)
    }
async fn assign_item ( & self , cmd : impl AssignItemCmd + ' async_trait ) -> eyre :: Result < Backlog > { let repo = self . provide ( ) ; let mut backlog = repo . get ( ) . await . wrap :: < OutcommingError > ( ) ? ; backlog . assign_item ( & cmd . id ( ) ? , cmd . assignee ( ) ? ) . wrap :: < BusinessLogicError > ( ) ? ; repo . save ( backlog . clone ( ) ) . await . wrap :: < OutcommingError > ( ) ? ; Ok ( backlog ) }
Assign the specific item to someone.
Assign the specific item to someone .
&self
cmd
impl AssignItemCmd + 'async_trait
&self
cmd
impl AssignItemCmd + 'async_trait