Пример #1
0
 public IActionResult Edit(RewardViewModel editedReward)
 {
     _rewardStorage.UpdateReward(editedReward.ConvertToDomainModelR());
     return(RedirectToAction(nameof(Index)));
 }
Пример #2
0
 public IActionResult Add(RewardViewModel newReward)
 {
     _rewardStorage.AddReward(newReward.ConvertToDomainModelR());
     return(RedirectToAction(nameof(Index)));
 }