protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); currentUser = (User)Session[AccountController.USER_SESSION_ID]; warehouseSevices = new WareHouseServices(); areaService = new AreaService(); ViewData["location"] = new SelectList(areaService.GetAll(x => x.trading_yn.Value == true), "Id", "AreaAddress"); }
protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); if (!Helpers.AllowTrading) { throw new HttpException("You are not authorized to access this page"); } stockCardService = new StockCardService(); warehouseSevices = new WareHouseServices(); salesServices = new SalesServices(); }
protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); productServices = new ProductServices(); warehouseSevices = new WareHouseServices(); stockReceivingService = new StockReceivingService(); supplierServices = new SupplierSerivecs(); customerServices = new CustomerServices(); if (!Helpers.AllowTrading) { throw new HttpException("You are not authorized to access this page"); } }
protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); shipmentServices = new ShipmentServicesImpl(); productServices = new ProductServices(); warehouseSevices = new WareHouseServices(); stockReceivingService = new StockReceivingService(); salesServices = new SalesServices(); usersServices = new UsersServicesImpl(); servicesType = new ServicesTypeServices(); if (!Helpers.AllowTrading) { throw new HttpException("You are not authorized to access this page"); } }