public int CommentCar(string id, string content) { const string sql = @"update car_share set commentcount=commentcount+1 where carid=@carid;"; try { Helper.Execute(sql, new { carid = id }); } catch (Exception ex) { return 0; } return 1; }