//Constructor that initializes private variables.
 public AccountController(SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager)
 {
     _signInManager   = signInManager;
     _userManager     = userManager;
     _roleManager     = roleManager;
     _bookService     = new BookService();
     _userService     = new UserService();
     _cartService     = new CartService();
     _wishlistService = new WishlistService();
     _orderService    = new OrderService();
     _obcService      = new OrderBookConnectionService();
     _ratingService   = new RatingService();
 }
Пример #2
0
 //Constructor to initialize private variables.
 public OrderController()
 {
     _orderService = new OrderService();
     _obcService   = new OrderBookConnectionService();
 }