Exemplo n.º 1
0
        public async Task <Week> NewMealPlannedWeek(int dailyCalorieTarget)
        {
            var recipes = await _recipeProvider.GetRecipesAsync();

            var week = new Week()
            {
                Days = new List <Day>(),
            };

            foreach (var day in Enum.GetValues(typeof(DayOfWeek)))
            {
                week.Days.Add(NewMealPlannedDay(dailyCalorieTarget, recipes, (DayOfWeek)day));
            }

            return(week);
        }