/// <summary> /// Execute /// </summary> /// <returns></returns> protected override bool Execute() { var adoKeyword_Product = new Keyword_Product_ADO(Ado); //Update and retrieve the number of updated rows int nUpdated = adoKeyword_Product.Update(DTO); if (nUpdated == 0) { Log.Instance.Debug("No record found for update request"); Response.error = Label.Get("error.update"); return(false); } else if (nUpdated < 0) { Response.error = Label.Get("error.duplicate"); } Response.data = JSONRPC.success; return(true); }