CarbonFitness.BusinessLogic.Implementation.UserIngredientBusinessLogic.GetNutrientSumForDate C# (CSharp) Method

GetNutrientSumForDate() public method

public GetNutrientSumForDate ( User user, NutrientEntity entity, System.DateTime date ) : decimal
user CarbonFitness.Data.Model.User
entity NutrientEntity
date System.DateTime
return 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;
        }