public static string MoveDown(string json, long topicId) { List <StickyTopic> topics = GetTopics(json); StickyTopic t = getById(topics, topicId); SortUtil <StickyTopic> s = new SortUtil <StickyTopic>(t, topics); s.MoveDown(); return(Json.ToStringList(s.GetOrderedList())); }
public static String MoveDown(String json, int topicId) { List <StickyTopic> topics = GetTopics(json); StickyTopic t = getById(topics, topicId); SortUtil <StickyTopic> s = new SortUtil <StickyTopic>(t, topics); s.MoveDown(); return(SimpleJsonString.ConvertList(s.GetOrderedList())); }
//------------------------------------------------------------------------------------------------- public static String MoveUp( String json, int topicId ) { List<StickyTopic> topics = GetTopics( json ); StickyTopic t = getById( topics, topicId ); SortUtil<StickyTopic> s = new SortUtil<StickyTopic>( t, topics ); s.MoveUp(); return SimpleJsonString.ConvertList( s.GetOrderedList() ); }
public static string MoveDown(string json, long topicId) { List<StickyTopic> topics = GetTopics( json ); StickyTopic t = getById( topics, topicId ); SortUtil<StickyTopic> s = new SortUtil<StickyTopic>( t, topics ); s.MoveDown(); return Json.ToStringList( s.GetOrderedList() ); }