Beispiel #1
0
        public ActionResult Create(int id, int?FilterDealIdentifierId, string FilterDealIdentifierText, int?FilterHotelId, int?FilterCurrencyId)
        {
            TravelSession obj = (TravelSession)Session["TravelPortalSessionInfo"];

            HotelInfoRepository hotelInfoRepository = new HotelInfoRepository();

            var hotelInfo = hotelInfoRepository.GetHotelInfoByHotelID(FilterHotelId ?? 0);
            BranchDealViewModel viewmodel = new BranchDealViewModel();

            viewmodel.HotelNameList      = hotelDealRepository.GetAllHotelList();
            viewmodel.DealMasterList     = mDealProvider.GetAllBranchDealMasterList(2, obj.LoginTypeId);
            viewmodel.DealMasterId       = id;
            viewmodel.DealMaserText      = mDealProvider.GetBranchDealMasterById(id).BranchDealName;
            viewmodel.DealIdentifierId   = FilterDealIdentifierId != null ? FilterDealIdentifierId.Value : 0;
            viewmodel.DealIdentifierText = FilterDealIdentifierText;
            viewmodel.CurrencyId         = FilterCurrencyId != null ? FilterCurrencyId.Value : 0;
            viewmodel.HotelId            = FilterHotelId;
            viewmodel.AirlineName        = hotelInfo != null ? hotelInfo.HotelName : string.Empty;
            viewmodel.CurrencyList       = mDealProvider.GetCurrencyList();

            if (Request != null && Request.IsAjaxRequest())
            {
                return(PartialView("CreateDeal", viewmodel));
            }
            else
            {
                return(View(viewmodel));
            }
        }
Beispiel #2
0
        public bool ExistHotelForUser(string starsid, decimal eventid)
        {
            HotelInfoRepository _hotel = new HotelInfoRepository();

            return(_hotel.ExistHotelForUser(starsid, eventid));
        }
Beispiel #3
0
        public bool UpdateHotelInfo(HotelCarModel model)
        {
            HotelInfoRepository _hotel = new HotelInfoRepository();

            return(_hotel.UpdateHotelInfo(model));
        }
Beispiel #4
0
        public void SaveHotelInfo(HotelCarModel model)
        {
            HotelInfoRepository _hotel = new HotelInfoRepository();

            _hotel.SaveHotelInfo(model);
        }
Beispiel #5
0
        public HotelCarModel GetHotelInfoByStarsEvent(string starsId, decimal eventId)
        {
            HotelInfoRepository _hotel = new HotelInfoRepository();

            return(_hotel.GetHotelInfoByStarsEvent(starsId, eventId));
        }
Beispiel #6
0
        public HotelCarModel GetRegistrationByStarsId(string starsId)
        {
            HotelInfoRepository _hotel = new HotelInfoRepository();

            return(_hotel.GetHotelInfoByStarsId(starsId));
        }