public ActionResult Delete(int?playlistId, int?trackId, int?masterPlaylistId = null, int?masterTrackId = null)
        {
            PlaylistTrackItemModel playlistTrackItemModel = new PlaylistTrackItemModel()
            {
                IsSecurityOperations = this.IsSecurityOperations,
                PlaylistTrack        = new PlaylistTrackViewModel(),
                ControllerAction     = "Delete",
                MasterPlaylistId     = masterPlaylistId, MasterTrackId = masterTrackId
            };

            try
            {
                PlaylistTrackDTO playlistTrackDTO = Application.GetById(playlistTrackItemModel.OperationResult, new object[] { playlistId, trackId });
                if (playlistTrackDTO != null)
                {
                    playlistTrackItemModel.PlaylistTrack = new PlaylistTrackViewModel(playlistTrackDTO);
                }
            }
            catch (Exception exception)
            {
                playlistTrackItemModel.OperationResult.ParseException(exception);
            }

            return(PartialView(playlistTrackItemModel));
        }
        public ActionResult Delete(PlaylistTrackItemModel playlistTrackItemModel)
        {
            try
            {
                if (Application.Delete(playlistTrackItemModel.OperationResult, (PlaylistTrackDTO)playlistTrackItemModel.PlaylistTrack.ToDTO()))
                {
                    return(JsonResultSuccess(new { uri = ReadUrlDictionary() }));
                }
            }
            catch (Exception exception)
            {
                playlistTrackItemModel.OperationResult.ParseException(exception);
            }

            return(JsonResultOperationResult(playlistTrackItemModel.OperationResult));
        }
        public ActionResult Delete(PlaylistTrackItemModel playlistTrackItemModel)
        {
            try
            {
                if (Application.Delete(playlistTrackItemModel.OperationResult, (PlaylistTrackDTO)playlistTrackItemModel.PlaylistTrack.ToDTO()))
                {
                    return(RedirectToUrlDictionary());
                }
            }
            catch (Exception exception)
            {
                playlistTrackItemModel.OperationResult.ParseException(exception);
            }

            playlistTrackItemModel.IsSecurityOperations = IsSecurityOperations;

            return(View(playlistTrackItemModel));
        }
        public ActionResult Create(int?masterPlaylistId = null, int?masterTrackId = null)
        {
            PlaylistTrackItemModel playlistTrackItemModel = new PlaylistTrackItemModel()
            {
                IsSecurityOperations = this.IsSecurityOperations,
                PlaylistTrack        = new PlaylistTrackViewModel(),
                ControllerAction     = "Create",
                MasterPlaylistId     = masterPlaylistId, MasterTrackId = masterTrackId
            };

            try
            {
                IsCreate(playlistTrackItemModel.OperationResult);
            }
            catch (Exception exception)
            {
                playlistTrackItemModel.OperationResult.ParseException(exception);
            }

            return(PartialView(playlistTrackItemModel));
        }