public JsonResult GetDealsPricingById(int dealPricingId) { _serviceEndPoint = new ServicesEndPoint.GeneralSevices.ServicesEndPoint(_simbaToursUnitOfWork, _emailService); var result = _serviceEndPoint.GetDealsPricing().FirstOrDefault(p => p.DealsPricingId == dealPricingId); return(Json(result)); }
public JsonResult GetDealsPricing() { _serviceEndPoint = new ServicesEndPoint.GeneralSevices.ServicesEndPoint(_simbaToursUnitOfWork, _emailService); DealsPricing[] deals = _serviceEndPoint.GetDealsPricing(); return(Json(deals)); }