public async Task <bool> DeleteArtist(int id) { if (!HttpContext.User.Identity.IsAuthenticated) { throw new ApiException("You have to be logged in to modify data", 401); } var db = new AlbumRepository(context); return(await db.DeleteArtist(id)); }
public async Task<bool> DeleteArtist(int id) { var db = new AlbumRepository(context); return await db.DeleteArtist(id); }
public async Task<bool> DeleteArtist(int id) { if (!HttpContext.User.Identity.IsAuthenticated) throw new ApiException("You have to be logged in to modify data", 401); var db = new AlbumRepository(context); return await db.DeleteArtist(id); }
public async Task <bool> DeleteArtist(int id) { var db = new AlbumRepository(context); return(await db.DeleteArtist(id)); }