예제 #1
0
        public JsonResult LikeIdea(EMPLOYEE EMP, string IDEA_ID)
        {
            LikeManager manager    = LikeManager.GetInstance();
            bool        checkLiked = manager.CheckLikeIdea(EMP.EMP_ID, IDEA_ID);

            if (checkLiked)
            {
                return(Json(-1));
            }
            return(Json(manager.InsertLikeIdea(IDEA_ID, EMP.EMP_ID, EMP.EMP_NAME)));
        }