Ejemplo n.º 1
0
        public async Task <IActionResult> GetDealsPricingById(int dealPricingId)
        {
            _serviceEndPoint = new ServicesEndPoint(_unitOfWork, _emailService);
            var result = (await _serviceEndPoint.GetDealsPricing()).FirstOrDefault(p => p.DealsPricingId == dealPricingId);

            return(Ok(result));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> GetDealsPricing()
        {
            _serviceEndPoint = new ServicesEndPoint(_unitOfWork, _emailService);

            DealsPricing[] deals = await _serviceEndPoint.GetDealsPricing();

            return(Ok(deals));
        }