public JsonResult GetBusDealIdentifiers(int?id) { var dealtype = hotelDealRepository.GetDealMasterById(id ?? 0, 4); var result = new JsonResult(); var lists = _DealProvider.GetBusDealIdentifiers(dealtype != null ? dealtype.DealTypeId : 0); result.Data = lists; result.JsonRequestBehavior = JsonRequestBehavior.AllowGet; return(result); }
public ActionResult Index(int?id, string filterCountryCode, int?filterCategory, int?filterCityId, int?filterHotelId, string filterDealIdentifier, int?filterCurrency) { var dealtype = hotelDealRepository.GetDealMasterById(id ?? 0, 2); HotelDealViewModel viewmodel = new HotelDealViewModel() { CurrencyList = masterDealProvider.GetCurrencyList().Where(x => x.Value == "1"), HotelList = hotelDealRepository.GetAllHotelList(), DealMasterList = mDealProvider.GetAllDealMasterList(2), DealIdentifierList = hotelDealRepository.GetDealIdentifiers(dealtype != null ? dealtype.DealTypeId : 0), DealList = hotelDealRepository.GetAllDeals(id, filterCountryCode, filterCategory, filterCityId, filterHotelId, filterDealIdentifier, filterCurrency) }; if (Request != null && Request.IsAjaxRequest()) { return(PartialView("VUC_DealDetailList", viewmodel)); } else { return(View(viewmodel)); } }