예제 #1
0
        public static bool UnlikeComment(Guid applicationId, LikeDislike Info)
        {
            string spName = GetFullyQualifiedName("UnlikeComment");

            try
            {
                return(ProviderUtil.succeed(ProviderUtil.execute_reader(spName, applicationId,
                                                                        Info.ObjectID, Info.UserID)));
            }
            catch (Exception ex)
            {
                LogController.save_error_log(applicationId, null, spName, ex, ModuleIdentifier.SH);
                return(false);
            }
        }
예제 #2
0
        public static bool LikeDislikePost(Guid applicationId, LikeDislike Info)
        {
            string spName = GetFullyQualifiedName("LikeDislikePost");

            try
            {
                if (!Info.Score.HasValue)
                {
                    Info.Score = 0;
                }

                return(ProviderUtil.succeed(ProviderUtil.execute_reader(spName, applicationId,
                                                                        Info.ObjectID, Info.UserID, Info.Like, Info.Score, Info.Date)));
            }
            catch (Exception ex)
            {
                LogController.save_error_log(applicationId, null, spName, ex, ModuleIdentifier.SH);
                return(false);
            }
        }
 public static bool unlike_comment(Guid applicationId, LikeDislike info)
 {
     return(DataProvider.UnlikeComment(applicationId, info));
 }
 public static bool like_dislike_post(Guid applicationId, LikeDislike info)
 {
     return(DataProvider.LikeDislikePost(applicationId, info));
 }