Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="o"></param>
        /// <param name="placeID"></param>
        /// <param name="isPrivate"></param>
        /// <returns></returns>
        internal Post CreateOpinionPost(Opinion o, Guid placeID, bool isPublic)
        {
            var     place   = AppLookups.GetCacheIndexEntry(placeID);
            var     postMgr = new cf.Content.Feed.V0.OpinionPostManager();
            dynamic data    = postMgr.CreateTemplateDynamicData(o, GetPostPlace(o.ObjectID));

            return(postMgr.CreatePost(o.ID, o.UserID, place, isPublic, data));
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="o"></param>
 /// <param name="placeID"></param>
 /// <param name="isPrivate"></param>
 /// <returns></returns>
 internal Post CreateOpinionPost(Opinion o, Guid placeID, bool isPublic)
 {
     var place = AppLookups.GetCacheIndexEntry(placeID);
     var postMgr = new cf.Content.Feed.V0.OpinionPostManager();
     dynamic data = postMgr.CreateTemplateDynamicData(o, GetPostPlace(o.ObjectID));
     return postMgr.CreatePost(o.ID, o.UserID, place, isPublic, data);
 }