private void btnCreateSave_Click(object sender, EventArgs e) { String error = validateAllControls(); if (error == "") { data_models.Models.MenuItem m = new data_models.Models.MenuItem(); updateObjectFromForm(ref m); MenuItemController.CreateItem(_context, m); loadMenuData(); showMenuList(); } else { MessageBox.Show(error, "Validation Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }