public async Task <ActionResult> AssignTagsByIdsAsync([FromBody] RulesAssignTagsByIdsBO model) { if (model != null && model.RuleIds != null && model.RuleIds.Count > 0 && model.Tags != null && model.Tags.Count > 0) { foreach (Guid ruleId in model.RuleIds) { await _rulesService.AssignTagsToRule(ruleId, model.Tags); } } return(Ok()); }