public PayController() { var expose = new Expose(); _payment = expose.CreatePayment(); _authority = expose.CreateAuthority(); _transactions = expose.CreateTransactions(); }
public BaseController(Contextdb _db, IWebHostEnvironment env) { var expose = new Expose(); _payment = expose.CreatePayment(); _authority = expose.CreateAuthority(); _transactions = expose.CreateTransactions(); db = _db; _env = env; }
public PaymentController(IAddPaymentService addPaymentService, ICartService cartService, IGetPaymentService getPaymentService, IAddNewOrderService addNewOrderService) { _addPaymentService = addPaymentService; _cartService = cartService; _getPaymentService = getPaymentService; cookiesManager = new CookiesManager(); _addNewOrderService = addNewOrderService; //zarinpal var expose = new Expose(); _payment = expose.CreatePayment(); _authority = expose.CreateAuthority(); _transactions = expose.CreateTransactions(); }