public IActionResult UpVote(string topicName) { Cache[topicName].UpVotes++; _topicRepository.AddVote(new Vote { Type = "Up", Topic = Cache[topicName], Voter = AuthController.LoggedInUser }); return(RedirectToAction(topicName, "Topics")); }