/// <summary> /// Votes a forum thread either up or down /// </summary> /// <param name="threadID">ID of the thread to vote</param> /// <param name="vote">direction of the vote</param> /// <returns>current reputation value of the thread</returns> public int VoteThread( int threadID, int userID, Util.Enum.Votes vote ) { //Dictionary<string, object> spParams = new Dictionary<string, object>( ); //spParams.Add( "threadID", threadID ); //spParams.Add( "userID", userID ); //spParams.Add( "value", vote ); //spParams.Add( "type", "Thread" ); //return Convert.ToInt32( _db.GetScalar( "uspML_SaveForumVote", spParams ) ?? 0 ); throw new NotImplementedException(); }
public ActionResult ShowForumThreads(Util.Enum.Forums forum) { return PartialView("_Threads", _threadService.ListThreads(forum)); }