public ActionResult Up(int postId) { var db = new ApplicationDbContext(); var voteTicket = new PostVoteModel { PostVoteValue = 1, PostId = postId, UserId = User.Identity.GetUserId() }; db.PostVotes.Add(voteTicket); db.SaveChanges(); var vm = db.Posts.Find(postId); return(PartialView("_PartialVoteDisplay", vm)); }