public static Dictionary <string, string> SetRulesParameterTypes(this ICheckRuleRepository checkRulesRepository) { List <RuleParameterModel> dictionary = checkRulesRepository.GetRulesParameterTypesDict(); Dictionary <string, string> RulesParameterTypes = new Dictionary <string, string>(); foreach (var d in dictionary) { RulesParameterTypes.Add(d.ParameterName, d.ParameterType); } return(RulesParameterTypes); }
public CheckRuleService(ICheckRuleRepository checkRulesRepository, IMapper mapper) { _checkRulesRepository = checkRulesRepository; _mapper = mapper; rulesParameterTypes = _checkRulesRepository.SetRulesParameterTypes(); }