예제 #1
0
 public ActionResult AddLike(int id)
 {
     RefreshPostsLastRequest = new DateTime(0);
     db.AddLikes(id, OnlineUsers.CurrentUser.Id);
     return(new JsonResult {
         Data = "Added", JsonRequestBehavior = JsonRequestBehavior.AllowGet
     });
 }