public async Task <IEnumerable <CustomerLifeTimeModel> > GetCustomerAverageSpending(SearchCustomerLTV searchCustomerLTV)
 {
     return(await Query <CustomerLifeTimeModel>("Crm.GetAverageSpendingPerCustomer", searchCustomerLTV));
 }
Beispiel #2
0
 public async Task <IEnumerable <CustomerLifeTimeModel> > GetCustomerAverageSpending(SearchCustomerLTV searchCustomerLTV)
 {
     return(await _customerSummaryRepository.GetCustomerAverageSpending(searchCustomerLTV));
 }
        public async Task <ActionResult> GetCustomerAverageSpending([FromQuery] SearchCustomerLTV searchCustomerLTV)
        {
            var listCustAverageSpending = await _customerSummaryService.GetCustomerAverageSpending(searchCustomerLTV);

            return(Ok(listCustAverageSpending));
        }