public Artist Get(int id) { var artistDAC = new ArtistDAC(); var result = artistDAC.SelectById(id); return(result); }
public void BorrarArtista(int id) { var artistDAC = new ArtistDAC(); artistDAC.DeleteById(id); //db.Delete(id); }
/// <summary> /// /// </summary> /// <param name="id"></param> /// <returns></returns> public Artist Find(int id) { Artist result = default(Artist); var artistDAC = new ArtistDAC(); result = artistDAC.SelectById(id); return(result); }
/// <summary> /// /// </summary> /// <returns></returns> public List <Artist> List() { List <Artist> result = default(List <Artist>); var artistDAC = new ArtistDAC(); result = artistDAC.Select(); return(result); }
/// <summary> /// /// </summary> /// <param name="artist"></param> /// <returns></returns> public Artist Add(Artist artist) { Artist result = default(Artist); var artistDAC = new ArtistDAC(); result = artistDAC.Create(artist); return(result); }
public Artist AgregarArtista(Artist artist) { //return db.Create(artist); Artist result = default(Artist); var artistDAC = new ArtistDAC(); result = artistDAC.Create(artist); return(result); }
public List <Artist> ListarTodosLosArtistas() { // return db.Get(); List <Artist> result = default(List <Artist>); var artistDAC = new ArtistDAC(); result = artistDAC.Select(); return(result); }
/// <summary> /// /// </summary> /// <param name="artist"></param> public void Edit(Artist artist) { var artistDAC = new ArtistDAC(); artistDAC.UpdateById(artist); }
/// <summary> /// /// </summary> /// <param name="id"></param> public void Remove(int id) { var artistDAC = new ArtistDAC(); artistDAC.DeleteById(id); }