public ActionResult Exist(int blogId) { var userId = User.Identity.GetUserId <int>(); int count = _collectionService.CountByBlogIdAndUserId(blogId, userId); return(Json(count, JsonRequestBehavior.AllowGet)); }