public void insertRuleException(int BusinessRuleId, int clientID, int userID, int claimId) { RuleExceptionManager RuleExceptionManagerObj = new RuleExceptionManager(); RuleException RuleExceptionObj = new RuleException(); RuleExceptionObj.BusinessRuleID = BusinessRuleId; RuleExceptionObj.ClientID = clientID; RuleExceptionObj.UserID = userID; RuleExceptionObj.ObjectID = claimId; RuleExceptionObj.ObjectTypeID = 1; RuleExceptionManagerObj.Save(RuleExceptionObj); }
public void AddException(RuleException ruleException) { using (RuleExceptionManager repository = new RuleExceptionManager()) { repository.Save(ruleException); } }