CarbonFitness.BusinessLogic.Implementation.UserIngredientBusinessLogic.GetNutrientSumForDate C# (CSharp) Méthode

GetNutrientSumForDate() public méthode

public GetNutrientSumForDate ( User user, NutrientEntity entity, System.DateTime date ) : decimal
user CarbonFitness.Data.Model.User
entity NutrientEntity
date System.DateTime
Résultat decimal
        public decimal GetNutrientSumForDate(User user, NutrientEntity entity, DateTime date)
        {
            var userIngredients = GetUserIngredients(user, date);
            decimal value;
            GetValueSumPerDateFromUserIngredients(userIngredients, x => x.GetNutrientIngredientDisplayValue(x.GetNutrient(entity))).TryGetValue(date.Date, out value);
            return value;
        }