public ActionResult Point(PointViewModel model) { model.Card = _cardService.GetCard(model.Card.Id); if (ModelState.IsValid) { View(model); } var point = new Point { PointedBy = _currentUserId, CardId = model.Card.Id, Points = model.PointValue }; var success = _pointService.PointCard(point); if (!success) { return(Redirect("/")); } return(RedirectToAction("Summary", "Team", new { id = model.Card.TeamId })); }