public ActionResult Create(Album album, string genres, string artists)
        {
            var artist = _artistReader.Load(artists);
            var genre = _genreReader.Load(genres);
            if (artist.HasValue && genre.HasValue)
            {
                album.Artist = artist.Value;
                album.Genre = genre.Value;
                _albumPersister.Store(album);
                return RedirectToAction("Index");
            }

            ViewBag.Genres = new SelectList(_genreReader.LoadAll(), "Id", "Name");
            ViewBag.Artists = new SelectList(_artistReader.LoadAll(), "Id", "Name");
            return View(album);
        }
        public void AddToCart(Album album)
        {
            var cartItem = _cartsPersister.LoadByAlbumAndShoppingCartId(album.Id, ShoppingCartId);

            if (cartItem == null)
            {
                cartItem = new Cart
                {
                    Album = album,
                    CartId = ShoppingCartId,
                    Count = 1,
                    DateCreated = DateTime.Now
                };
            }
            else
            {
                cartItem.Count++;
            }

            _cartsPersister.Store(cartItem);
        }