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)); }
public ICommandResult Delete(DeleteSongCommand command) { return(_handler.Handle(command)); }