protected void LikeControl_Like(object sender, LikeEventArgs e)
        {
            string userID = this.User.Identity.GetUserId();
            Article article = this.dbContext.Articles.Find(e.DataID);
            Like like = article.Likes.FirstOrDefault(l => l.UserID == userID);
            if (like == null)
            {
                like = new Like()
                {
                    UserID = userID,
                };

                this.dbContext.Articles.Find(e.DataID).Likes.Add(like);
            }

            like.Value = e.LikeValue;
            this.dbContext.SaveChanges();

            var control = sender as LikeControl;
            control.Value = article.Likes.Sum(l => l.Value);
            control.CurrentUserVote = e.LikeValue;
        }
        protected void LikeControl_Like(object sender, LikeEventArgs e)
        {
            Article article = this.dbContext.Articles.Find(Convert.ToInt32(e.DataID));
            string userID = this.User.Identity.GetUserId();
            Like like = article.Likes.FirstOrDefault(l => l.UserID == userID);

            if (like == null)
            {
                like = new Like()
                {
                    UserID = userID,
                    PostID = Convert.ToInt32(e.DataID)
                };

                article.Likes.Add(like);
                dbContext.Likes.Add(like);
            }

            like.Value = e.LikeValue;
            this.dbContext.SaveChanges();

            //LikeControl ctrl = sender as LikeControl;
            DataBind();
        }