Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="postId"></param>
        /// <param name="userId"></param>
        /// <param name="acceptedDate"></param>
        /// <param name="moduleId"></param>
        public void AcceptAnswer(int postId, int userId, DateTime acceptedDate, int moduleId)
        {
            //DotNetNuke.Common.Requires.PropertyNotNegative("postId", "", postId);
            //DotNetNuke.Common.Requires.PropertyNotNegative("userId", "", userId);
            //DotNetNuke.Common.Requires.PropertyNotNegative("moduleId", "", moduleId);

            _dataProvider.AcceptAnswer(postId, userId, acceptedDate);

            DataCache.RemoveCache(Constants.ModuleCacheKey + Constants.HomeQuestionsCacheKey + moduleId);
        }