public ActionResult Index(MapModel mapModel) { if (!ModelState.IsValid) { return(View(mapModel)); } try { _adminData.SaveMapPageMetadata(mapModel); _alert.Set(this, AlertType.Success, "Changes have been saved"); } catch (Exception) { _alert.Set(this, AlertType.Error, "Unable to save changes"); } return(Index()); }