private void addNewRewardToolStripMenuItem_Click(object sender, EventArgs e) { if (_memory == null) { MessageBox.Show("choose data source"); } else { var form = new RewardForm(); if (form.ShowDialog() == DialogResult.OK) { _memory.AddReward(form.GetReward()); UpdateTables(); } } }
public void AddReward(Reward reward) { data.AddReward(reward); }
public ActionResult Create(Common.Reward reward) { data.AddReward(reward); return(RedirectToAction("Index")); }
public void AddReward(Reward reward) { // logic data.AddReward(reward); }