public static bool UpdateArtist(int key, string name, string country, int year) { try { string fill = "1"; DBMusicDatabase.UpdateRow(DBSQLQueries.UpdateArtist(), key, name, fill, fill, fill, country, year, fill, fill, int.Parse(fill), fill, fill); return(true); } catch (Exception ex) { throw ex; } }
public static bool UpdateTrack(int key, string name, string artist, int year, string album, string link, int number, string length, string genre) { try { string fill = "1"; DBMusicDatabase.UpdateRow(DBSQLQueries.UpdateTrack(), key, name, artist, album, fill, fill, year, fill, link, number, length, genre); return(true); } catch (Exception ex) { throw ex; } }
public static bool UpdateGenre(int key, string name) { try { string fill = "1"; DBMusicDatabase.UpdateRow(DBSQLQueries.UpdateGenre(), key, name, fill, fill, fill, fill, int.Parse(fill), fill, fill, int.Parse(fill), fill, fill); return(true); } catch (Exception ex) { throw ex; } }
public static bool UpdateAlbum(int key, string name, string artist, string company, int year, string imageLink) { try { string fill = "1"; DBMusicDatabase.UpdateRow(DBSQLQueries.UpdateAlbum(), key, name, artist, fill, company, fill, year, imageLink, fill, int.Parse(fill), fill, fill); return(true); } catch (Exception ex) { throw ex; } }