public void MakeConfiguratedMeal(ConfiguredMealInputDTO configuredMeal) { IList <Garnish> garnishies = new List <Garnish>(); if (configuredMeal.GarnishesId != null) { foreach (var g in configuredMeal.GarnishesId) { garnishies.Add(userService.GetGarnishById(g)); } } Meal meal = sellerService.GetMealById(configuredMeal.MealId); Order order = customerService.GetOrderById(configuredMeal.OrderId); customerService.MakeConfiguratedMeal(new ConfiguredMeal { Meal = meal, Order = order, SelectedGarnishes = garnishies }); }