public async Task <IEnumerable <Result> > RunProcess(IEnumerable <DataModel> inputData) { var validData = _rule.GetValidRules(inputData); if (validData.Any()) { var effects = _rule.GetEffects(); var channels = _channelFactory.GetChannels(effects.Select(x => x.Type).ToArray()); var results = await _notificationService.NotificateAsync(validData.Select(x => new MessageModel($"Project name: {x.Name}", $"Project name: {x.Name} Project description: {x.Description}", x.Id)), channels); return(results); } return(new List <Result>() { new Result() { Success = true, Data = "all of data are not valid" } }); }