Beispiel #1
0
        public ICommandResult Handle(DeleteSongCommand command)
        {
            bool result = _repository.Delete(command.Id);

            if (!result)
            {
                return(new CommandResult(false, MessagesUtil.DeleteError));
            }

            return(new CommandResult(true, MessagesUtil.DeletedSuccess));
        }
Beispiel #2
0
 public ICommandResult Delete(DeleteSongCommand command)
 {
     return(_handler.Handle(command));
 }