Пример #1
0
        public void GetGallery()
        {
            Console.Clear();
            ArtRepo ap = new ArtRepo(_context, new ArtMapper());

            ap.ShowArtByArtist(artist.Id);
        }
Пример #2
0
        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.");
            }
        }