Пример #1
0
 public JsonResult ToggleEventLike(long UID, long ID)
 {
     try
     {
         Models.Database db        = new Models.Database( );
         int             intReturn = 0;
         intReturn = db.ToggleEventLike(UID, ID);
         return(Json(new { Status = intReturn }));
     }
     catch (Exception ex)
     {
         return(Json(new { Status = -1 }));                  //error
     }
 }