public ActionResult Create(BandEditModel bandEditModel) { if (ModelState.IsValid) { bandRepository.InsertOrUpdate(bandEditModel.Band); bandRepository.Save(); //Update the artists bandRepository.UpdateArtists(bandEditModel.Band.Id, bandEditModel.ArtistCheckedList); return(RedirectToAction("Index")); } else { return(View(bandEditModel)); } return(View(bandEditModel)); }