public void GetGallery() { Console.Clear(); ArtRepo ap = new ArtRepo(_context, new ArtMapper()); ap.ShowArtByArtist(artist.Id); }
public void attachToSeller() { Console.Clear(); SellerRepo cp = new SellerRepo(_context, new SellerMapper()); ArtRepo ap = new ArtRepo(_context, new ArtMapper()); ap.ShowArtByArtist(artist.Id); int artid = getint("Please enter the id of the art you'de like to attach."); int sellid = getint("Please Enter the id of the seller you'de like to attach to."); try { cp.AddInventory(artid, sellid); } catch (Exception) { Console.WriteLine("There was an issue with attachment, please try again."); } }