public JsonResult Update(AuditRuleViewModel model)
        {
            try
            {
                AuditRuleModel auditRuleModel = auditRuleBll.GetModel(model.AuditRuleID);
                auditRuleModel.Area   = model.Area;
                auditRuleModel.Rule   = model.Rule;
                auditRuleModel.Status = model.Status;

                auditRuleBll.Update(auditRuleModel);
                return(Json(new { code = 200 }));
            }
            catch (Exception ex)
            {
                return(Json(new { code = 500, msg = ex.Message }));
            }
        }
        public JsonResult Insert(AuditRuleViewModel model)
        {
            try
            {
                AuditRuleModel auditRuleModel = new AuditRuleModel();
                auditRuleModel.Area   = model.Area;
                auditRuleModel.Rule   = model.Rule;
                auditRuleModel.Status = model.Status;

                auditRuleBll.Insert(auditRuleModel);
                return(Json(new { code = 200 }));
            }
            catch (Exception ex)
            {
                return(Json(new { code = 500, msg = ex.Message }));
            }
        }