// GET: Reward/Delete/5

        public ActionResult Delete(int id)
        {
            RewardViewModel rewardModel = new RewardViewModel();
            var             r           = rewardService.GetAll();

            foreach (var i in r)
            {
                if (i.IdReward == id)
                {
                    rewardModel.IdReward = i.IdReward;
                    rewardModel.Price1   = i.Price1;
                    rewardModel.Price2   = i.Price2;
                    rewardModel.Price3   = i.Price3;
                    rewardModel.titre    = i.titre;
                    rewardService.Delete(i);
                    rewardService.Commit();
                }
            }

            return(View());
        }