internal object Delete(int id) { DTOArtistGenre exists = Get(id); _repo.Delete(id); return(exists); }
public IHttpActionResult DeleteArtistGenre(long id) { ArtistGenre artistGenre = db.Find(id); if (artistGenre == null) { return(NotFound()); } db.Delete(id); db.Save(); return(Ok(artistGenre)); }