public OrdersController(IOrderService orderService, ICouponItemService couponItemService, IUserService userService, IPagination pagination)
        {
            this._orderService      = orderService;
            this._couponItemService = couponItemService;
            this._userService       = userService;
            this._pagination        = pagination;

            // Get the current requesting user
            string username = HttpContext.Current.User.Identity.GetUserName();

            CURRENT_USER_ID = _userService.GetUser(u => u.Username.Equals(username)).Id;
        }
Exemplo n.º 2
0
 public UserCouponPackagesController(IUserCouponPackageService userCouponPackageService, ICouponItemService couponItemService)
 {
     this._userCouponPackageService = userCouponPackageService;
     this._couponItemService        = couponItemService;
 }