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")); }
public virtual async Task <IActionResult> Remove(long id) { await _songManager.Delete(id); return(Redirect("/Song")); }