Пример #1
0
        public void GetReveneuePairByCustomer(HealthPlanRevenue revenue, HealthPlanRevenueItem revenueItem, List <OrderedPair <long, decimal> > list)
        {
            var customerCount = _eventCustomerRepository.GetEventCustomerCountForHealthPlanRevenueByCustomer(revenue.AccountId, revenue.DateFrom, revenue.DateTo ?? DateTime.Today.AddDays(1));
            var price         = revenueItem.Price;

            var revenueGenderated = (price * customerCount);

            list.Add(new OrderedPair <long, decimal>(customerCount, revenueGenderated));
        }