public IHttpActionResult GetRulesById(long ruleId)
        {
            using (var client = ServiceClient <IRulesManager> .Create(ObjectConstants.RulesManager))
            {
                _ruleDTO = client.Instance.GetRulesById(ruleId);
            }


            return(Ok(_ruleDTO));
        }
        public IHttpActionResult UpdateRule(RulesDTO rule)
        {
            long ruleId;

            using (var client = ServiceClient <IRulesManager> .Create(ObjectConstants.RulesManager))
            {
                ruleId = client.Instance.Update(rule);
            }

            return(Ok(ruleId));
        }