private void AddScoredPost(int postId, int userId, ScoreTypes type) { ScoredPost scoredPost = new ScoredPost() { PostId = postId, UserId = userId }; switch (type) { case ScoreTypes.Positive: scoredPost.Score = true; break; case ScoreTypes.Negative: scoredPost.Score = false; break; } postManager.AddScoredPost(scoredPost); }