public JsonResult RateEvent(long UID, long ID, long Rating) { try { Models.Database db = new Models.Database( ); int intReturn = 0; intReturn = db.RateEvent(UID, ID, Rating); return(Json(new { Status = intReturn })); } catch (Exception ex) { return(Json(new { Status = -1 })); //error } }