public ActionResult Create(Album album)
        {
            if (ModelState.IsValid)
            {
                // Save album
                storeDB.AddToAlbums(album);
                storeDB.SaveChanges();

                // adiciona o album à lista de albums da AnalisaMercados
                AnalisaMercadosServiceReference.Service1SoapClient analisaMercados = new AnalisaMercadosServiceReference.Service1SoapClient();
                analisaMercados.CreateAlbum(album.Title, album.Artist.Name, album.Genre.Name, (float)album.Price);

                return RedirectToAction("Index");
            }

            // Invalid - redisplay with errors
            var viewModel = new StoreManagerViewModel
            {
                Album = album,
                Genres = storeDB.Genres.ToList(),
                Artists = storeDB.Artists.ToList()
            };

            return View(viewModel);
        }
        //
        // GET: /StoreManager/Create
        public ActionResult Create()
        {
            var viewModel = new StoreManagerViewModel
            {
                Album = new Album(),
                Genres = storeDB.Genres.ToList(),
                Artists = storeDB.Artists.ToList()
            };

            return View(viewModel);
        }
        //
        // GET: /StoreManager/Edit/5
        // Display Edit Form
        public ActionResult Edit(int id)
        {
            try
            {
                var viewModel = new StoreManagerViewModel
                {
                    Album = storeDB.Albums.Single(a => a.AlbumId == id),
                    Genres = storeDB.Genres.ToList(),
                    Artists = storeDB.Artists.ToList()
                };

                return View(viewModel);
            }
            catch
            {
                return RedirectToAction("Index");
            }
        }
        public ActionResult Edit(int id, FormCollection collection)
        {
            var album = storeDB.Albums.Single(a => a.AlbumId == id);

            try
            {
                // Save Album
                UpdateModel(album, "Album");
                storeDB.SaveChanges();

                // actualiza a lista de albums da AnalisaMercados
                AnalisaMercadosServiceReference.Service1SoapClient analisaMercados = new AnalisaMercadosServiceReference.Service1SoapClient();
                analisaMercados.UpdateAlbum(album.Title, album.Artist.Name, (float)album.Price);

                return RedirectToAction("Index");
            }
            catch
            {
                // Error
                var viewModel = new StoreManagerViewModel
                {
                    Album = album,
                    Genres = storeDB.Genres.ToList(),
                    Artists = storeDB.Artists.ToList()
                };

                return View(viewModel);
            }
        }