public ActionResult Update(int userId) { var model = UsersAndRewardsViewModel.CreateModel(logic.GetUserById(userId), logic.GetRewards()); return(View("UserPage", model)); }
public ActionResult Create() { var model = UsersAndRewardsViewModel.CreateModel(null, logic.GetRewards()); return(View("UserPage", model)); }