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); 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"); } }
public SalesPresenter(ISalesServices salesServices) { _salesServices = salesServices; }
public SalesController(ISalesServices saleservices) { _saleservices = saleservices; }
public SalesController(ISalesServices sales) { this.sales = sales; }
public SalesController(ISalesServices prmInventoryServices, ILogger <InventoryController> logger) { salesServices = prmInventoryServices; _logger = logger; }
public SearchController(ICustomersService customersService, IProductsService productsService, ISalesServices salesServices) { this.customersService = customersService; this.productsService = productsService; this.salesServices = salesServices; }