public SubCategoryService(E_commerceDB context,
                           IGenderCategoryService genderCategoryService, IGenderSubCategoryService genderSubCategoryService)
 {
     _context = context;
     _genderCategoryService    = genderCategoryService;
     _genderSubCategoryService = genderSubCategoryService;
 }
 public InventoryService(E_commerceDB context
                         , IHttpContextAccessor httpContextAccessor, UserManager <Account> userManager)
 {
     _context = context;
     _user    = _context.Account.First(x => x.UserName == httpContextAccessor
                                       .HttpContext.User.Identity.Name);
     _userManager = userManager;
 }
 public PurchaseService(E_commerceDB context, IHttpContextAccessor httpContextAccessor,
                        UserManager <Account> userManager, RoleManager <IdentityRole> roleManager)
 {
     _context = context;
     _user    = _context.Account.First(x => x.UserName == httpContextAccessor.HttpContext
                                       .User.Identity.Name);
     _userManager = userManager;
     _roleManager = roleManager;
 }
 public ShoppingCartService(E_commerceDB context, IEmailService emailService, ICouponService couponService, UserManager <Account> userManager,
                            IPaymentService paymentService)
 {
     _context        = context;
     _emailService   = emailService;
     _userManager    = userManager;
     _couponService  = couponService;
     _paymentService = paymentService;
 }
Beispiel #5
0
 public WarehouseService(E_commerceDB context
                         , IHttpContextAccessor httpContextAccessor, UserManager <Account> userManager)
 {
     _context = context;
     if (httpContextAccessor.HttpContext.User.Identity.Name != null)
     {
         _user = _context.Account.First(x => x.UserName == httpContextAccessor
                                        .HttpContext.User.Identity.Name);
     }
     _userManager = userManager;
 }
Beispiel #6
0
 public CouponService(E_commerceDB context)
 {
     _context = context;
 }
 public PaymentMethodService(E_commerceDB context)
 {
     _context = context;
 }
Beispiel #8
0
 public SizeService(E_commerceDB context)
 {
     _context = context;
 }
 public CityService(E_commerceDB context)
 {
     _context = context;
 }
Beispiel #10
0
 public CustomerService(E_commerceDB E_CommerceDB)
 {
     _context = E_CommerceDB;
 }
Beispiel #11
0
 public ItemService(E_commerceDB context, IItemCostHistoryService itemCostHistoryService)
 {
     _context = context;
     _itemCostHistoryService = itemCostHistoryService;
 }
 public ItemCostHistoryService(E_commerceDB context)
 {
     _context = context;
 }
Beispiel #13
0
 public BrandCategoryService(E_commerceDB context)
 {
     _context = context;
 }
 public HistoryOfPaymentsService(E_commerceDB context)
 {
     _context = context;
 }
Beispiel #15
0
 public SubCategoryService(E_commerceDB context)
 {
     _context = context;
 }
 public GenderCategoryService(E_commerceDB context)
 {
     _context = context;
 }
Beispiel #17
0
 public ItemService(E_commerceDB context)
 {
     _context = context;
 }
Beispiel #18
0
 public FriendService(E_commerceDB context)
 {
     _context = context;
 }
 public BranchService(E_commerceDB context)
 {
     _context = context;
 }
Beispiel #20
0
 public EmployeeService(E_commerceDB context)
 {
     _context = context;
 }
 public ForgetPasswordLoggerService(E_commerceDB context)
 {
     _context = context;
 }