public void LoadViewBagPromotion( int Hotelid)
 {
     DropDownListsRepository DrpRep = new DropDownListsRepository();
       NewPromotionRepository NewProm = new NewPromotionRepository();
       ViewBag.PricePolicies = DrpRep.GetPricePlicy();
       ViewBag.HotelRooms = NewProm.GetHotelRooms(Hotelid);
       ViewBag.DaysDetails = NewProm.GetDay();
       int MinimumPromotionDiscountPercentage = NewProm.GetParameterValue("MinimumPromotionDiscountPercentage");
       int MaximumPromotionDiscountPercentage = NewProm.GetParameterValue("MaximumPromotionDiscountPercentage");
       ViewBag.MinimumPromotionDiscountPercentage = MinimumPromotionDiscountPercentage;
       ViewBag.MaximumPromotionDiscountPercentage = MaximumPromotionDiscountPercentage;
       ViewBag.DefaultPromotionDiscountPercentage = NewProm.GetParameterValue("DefaultPromotionDiscountPercentage");
       ViewBag.MaximumDayCountForMinimumStayPromotion = NewProm.GetParameterValue("MaximumDayCountForMinimumStayPromotion");
       ViewBag.MaximumHourCountForMinimumStayPromotion = NewProm.GetParameterValue("MaximumHourCountForMinimumStayPromotion");
       ViewBag.DiscountPercentValidation = Resources.Resources.RangeWarning + " " + Resources.Resources.MinimumValue + ": " + MinimumPromotionDiscountPercentage + " ," + Resources.Resources.MaximumValue + ": " + MaximumPromotionDiscountPercentage;
 }
        public JsonResult GetPricePlicyEditorTemplate()
        {
            DropDownListsRepository modelRepo = new DropDownListsRepository();

            return Json(modelRepo.GetPricePlicy().OrderBy(o => o.ID).Select(c => new { PricePolicyTypeID = c.ID, PricePolicy = c.Name }).OrderBy(o => o.PricePolicyTypeID), JsonRequestBehavior.AllowGet);
        }