public JsonResult GetSchedulesPricingById(int schedulesPricingId) { _serviceEndPoint = new ServicesEndPoint.GeneralSevices.ServicesEndPoint(_simbaToursUnitOfWork, _emailService); var result = _serviceEndPoint.GetSchedulesPricing().FirstOrDefault(p => p.SchedulesPricingId == schedulesPricingId); return(Json(result)); }
public JsonResult GetSchedulesPricing() { _serviceEndPoint = new ServicesEndPoint.GeneralSevices.ServicesEndPoint(_simbaToursUnitOfWork, _emailService); SchedulesPricing[] deals = _serviceEndPoint.GetSchedulesPricing(); return(Json(deals)); }