Example #1
0
        public static void voteTag(string premalink, long tagId, string vote, string flow, long TagId,
                                   long profileUserId)
        {
            try
            {
                HttpCookie cookie = HttpContext.Current.Request.Cookies["Tagged"];

                var blltag = new BllTag();
                var tag    = new DtoTag();

                tag.TagId    = tagId;
                tag.UserId   = Convert.ToInt64(UtilityClass.DecryptStringAES(cookie["d"]));
                tag.VoteType = vote;
                tag.Link     = premalink;

                if (flow.ToLower() == "userprofile")
                {
                    tag.UserId = profileUserId;
                    blltag.VoteUserTag(tag);
                }
                else if (flow.ToLower() == "tagged")
                {
                    tag.TagId    = tagId;
                    tag.TagCount = TagId;
                    blltag.VoteTagged(tag);
                }
                else
                {
                    blltag.VoteTag(tag);
                }
            }
            catch (Exception ex)
            {
                ex.ToExceptionless().Submit();
            }
        }