Example #1
0
        public ActionResult Exist(int blogId)
        {
            var userId = User.Identity.GetUserId <int>();
            int count  = _collectionService.CountByBlogIdAndUserId(blogId, userId);

            return(Json(count, JsonRequestBehavior.AllowGet));
        }