public ActionResult DeleteRule(string leadScoreData) { DeleteLeadScoreRequest request = JsonConvert.DeserializeObject <DeleteLeadScoreRequest>(leadScoreData); request.accountID = UserExtensions.ToAccountID(this.Identity); leadScoreService.UpdateLeadScoreStatus(request); return(Json(new { success = true, response = "" }, JsonRequestBehavior.AllowGet)); }
public DeleteLeadScoreResponse UpdateLeadScoreStatus(DeleteLeadScoreRequest request) { Logger.Current.Verbose("Request for user change the status"); leadScoreRuleRepository.DeactivateRules(request.RuleID); if (request.conditionId == (int)LeadScoreConditionType.ContactActionTagAdded || request.conditionId == (int)LeadScoreConditionType.ContactNoteTagAdded) { Thread t2 = new Thread(delegate() { UpdateLeadScoreTags(request.accountID); }); t2.Start(); } return(new DeleteLeadScoreResponse()); }
public DeleteLeadScoreResponse DeleteRule(DeleteLeadScoreRequest request) { throw new NotImplementedException(); }