public IActionResult Edit(RewardViewModel editedReward) { _rewardStorage.UpdateReward(editedReward.ConvertToDomainModelR()); return(RedirectToAction(nameof(Index))); }
public IActionResult Add(RewardViewModel newReward) { _rewardStorage.AddReward(newReward.ConvertToDomainModelR()); return(RedirectToAction(nameof(Index))); }