Exemplo n.º 1
0
        private async Task SendRecipes(string clientId, List <RecipeRow> recipesList,
                                       GuidesIdsCollection guidesIdsCollection)
        {
            _log.Info("Checking recipes in guides");
            var isRemainsFieldsValid =
                _recipeService.CheckRequiredFields(recipesList, guidesIdsCollection);

            if (!isRemainsFieldsValid)
            {
                _log.Info("Recipes check failed");
                _log.Info("Recipes send failed");
                return;
            }

            //*** _remainService move to function parameters
            await SendEntitiesAsync(clientId, _recipeService, recipesList);
        }