Example #1
0
        protected decimal GetPercentualValue(CategoryWithAmountModel category)
        {
            decimal total = Categories.Sum(c => c.TotalAmount.Value);

            return(100 / total * category.TotalAmount.Value);
        }