public IActionResult UpdateDealPricing([FromBody] DealsPricing dealsPricing)
        {
            _serviceEndPoint = new ServicesEndPoint.GeneralSevices.ServicesEndPoint(_simbaToursUnitOfWork, _emailService);
            bool result = _serviceEndPoint.UpdateDealPricing(dealsPricing);

            return(Json(result));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> UpdateDealPricing([FromBody] DealsPricing dealsPricing)
        {
            _serviceEndPoint = new ServicesEndPoint(_unitOfWork, _emailService);
            bool result = await _serviceEndPoint.UpdateDealPricing(dealsPricing);

            if (result)
            {
                return(Ok(result));
            }
            return(BadRequest());
        }
 public bool PostDealPricing(DealsPricing dealsPricing)
 {
     try
     {
         _simbaToursUnitOfWork._dealsPricingRepository.Insert(dealsPricing);
         _simbaToursUnitOfWork.SaveChanges();
         return(true);
     }
     catch (Exception e)
     {
         return(false);
     }
 }