public ActionResult EditMuseum(MuseumInputModel museum) { if (ModelState.IsValid) { Museum musToEdit = db.GetMuseum(museum.MuseumID); musToEdit.ConvertFromMuseumInputModel(museum); //Make museum from input model db.UpdateMuseum(musToEdit); } else { ModelState.AddModelError("edit-error", "The Museum you tried to edit had some incorrectly filled fields."); } return(View(museum)); }