示例#1
0
        public IActionResult DeleteSong(int songId)
        {
            var song = _songManager.GetOne(filter: x => x.ArtistId == CurrentLoggedUserId && x.Id == songId);

            _songManager.Delete(song);
            _songManager.Save();

            return(RedirectToAction("Index"));
        }
示例#2
0
        public virtual async Task <IActionResult> Remove(long id)
        {
            await _songManager.Delete(id);

            return(Redirect("/Song"));
        }