public Arguments.Base.Response DeletePlayList(Guid idPlayList) { bool existe = _repositoryVideo.ThereIsAssociatedPlayList(idPlayList); if (existe) { AddNotification("PlayList", MSG.NAO_E_POSSIVEL_EXCLUIR_UMA_X0_ASSOCIADA_A_UMA_X1.ToFormat("Playlist", "vídeo")); return(null); } PlayList playList = _repositoryPlayList.Get(idPlayList); if (playList == null) { AddNotification("PlayList", MSG.DADOS_NAO_ENCONTRADOS); } if (this.IsInvalid()) { return(null); } _repositoryPlayList.Delete(playList); return(new Response() { Message = MSG.OPERACAO_REALIZADA_COM_SUCESSO }); }