예제 #1
0
        public async Task <ActionResult> GetBillWithStatistics()
        {
            var accountNumber = new CustomerAccountNumber(ClaimsPrincipal.Current.FindFirst("AccountNumber").Value);
            var bill          = await billingService.Find(accountNumber);

            var vm = new BillWithStatisticsViewModel
            {
                Bill                 = bill,
                CalledFrequency      = bill.GetCalledFrequency(),
                SkyStoreChargesValue = bill.GetSkyStoreChargesValue()
            };

            return(Json(vm, jsonConverters));
        }