public IActionResult UpdateReward()
        {
            int    rewardId          = int.Parse(Request.Form["uRewardId"]);
            string rewardTitle       = Request.Form["uTitle"];
            string rewardDescription = Request.Form["uDescription"];

            _rewardsBL.Update(new Entites.Reward(rewardId, rewardTitle, rewardDescription));

            return(RedirectToAction("Index"));
        }
        private void EditReward()
        {
            if (dgvRewards.SelectedCells.Count > 0)
            {
                Reward reward = (Reward)dgvRewards.SelectedCells[0].OwningRow.DataBoundItem;

                var formReward = new FormReward(reward);

                if (formReward.ShowDialog(this) == DialogResult.OK)
                {
                    reward.Title       = formReward.Title;
                    reward.Description = formReward.Description;

                    _rewardsBL.Update(reward);
                }
            }
        }