public ActionResult NewPromotion() { Session["PageName"] = "NewPromotion"; PromotionsRepository modelRepo = new PromotionsRepository(); AssignBizContext(); SecurityUtils.SetGlobalViewbags(this, ActiveMenu, BizContext.UserContext.IsAdmin(), BizContext.UserContext.IsHotelAdmin(), BizContext.HotelID); int id = BizContext.HotelID; LoadViewBagPromotion(id); //SecurityUtils.SetGlobalViewbags(this, ActiveMenu); return View(); }
public ActionResult _Read([DataSourceRequest]DataSourceRequest request) { PromotionsRepository modelRepo = new PromotionsRepository(); BizContext = (BizContext)Session["GBAdminBizContext"]; int id = BizContext.HotelID; Session["GBAdminBizContext"] = BizContext; DataSourceResult result = modelRepo.ReadAll(id).ToDataSourceResult(request); return Json(result); }