public OrderController(IProductRepository productRepository, Cart cartService, UserManager <AppUser> userManager, IOrderRepository orderRepository, IOrderPositionRepository orderPositionRepository) { this.productRepository = productRepository; this.cartService = cartService; this.userManager = userManager; this.orderPositionRepository = orderPositionRepository; this.orderRepository = orderRepository; }
public AdminController( IProductRepository productRepository, ICategoryRepository categoryRepository, RoleManager <IdentityRole> roleManager, UserManager <AppUser> userManager, IOrderRepository orderRepository, IUserRolesRepository userRolesRepository, IOrderPositionRepository orderPositionRepository, IPasswordValidator <AppUser> passwordValidator, IPasswordHasher <AppUser> passwordHasher) { this.productRepository = productRepository; this.categoryRepository = categoryRepository; this.roleManager = roleManager; this.userManager = userManager; this.orderRepository = orderRepository; this.userRolesRepository = userRolesRepository; this.orderPositionRepository = orderPositionRepository; this.passwordValidator = passwordValidator; this.passwordHasher = passwordHasher; }
public OrderPositionBusinessService(IUnitOfWork unitOfWork, IOrderPositionRepository orderPositionRepository) { _orderPositionRepository = orderPositionRepository; _unitOfWork = unitOfWork; }