public CheckoutModel(IReceivingTypeRepository receivingTypeRepository, IShowRoomAddressRepository showRoomAddressRepository, IAddressRepository addressRepository, IWardRepository wardRepository, IDistrictRepository districtRepository, IProvinceRepository provinceRepository, IItemRepository itemRepository, UserManager <ApplicationUser> userManager, ICartRepository cartRepository, ICartDetailRepository cartDetailRepository, IUserRepository userRepository, IDefaultAddressRepository defaultAddressRepository, IOrderItemRepository orderItemRepository, IOrderRepository orderRepository, IEmailSender emailSender, IRazorViewToStringRenderer razorViewToStringRenderer, DbContextOptions <OnlineStoreDbContext> options) { _options = options; _emailSender = emailSender; _itemRepository = itemRepository; _razorViewToStringRenderer = razorViewToStringRenderer; _orderItemRepository = orderItemRepository; _orderRepository = orderRepository; _defaultAddressRepository = defaultAddressRepository; _userRepository = userRepository; _cartDetailRepository = cartDetailRepository; _cartRepository = cartRepository; _userManager = userManager; _provinceRepository = provinceRepository; _districtRepository = districtRepository; _wardRepository = wardRepository; _addressRepository = addressRepository; _showRoomAddressRepository = showRoomAddressRepository; _receivingTypeRepository = receivingTypeRepository; }
public ReceivingTypeManagementModel( IReceivingTypeRepository receivingTypeRepository, IOrderRepository orderRepository) { _receivingTypeRepository = receivingTypeRepository; _orderRepository = orderRepository; }
public IndexModel(IOrderRepository orderRepository, IOrderItemRepository orderItemRepository, IReceivingTypeRepository receivingTypeRepository) { _orderRepository = orderRepository; _receivingTypeRepository = receivingTypeRepository; _orderItemRepository = orderItemRepository; _mapperConfiguration = new MapperConfiguration(cfg => { cfg.CreateMap <DAL.Data.Entities.Order, OrderInfoViewModel>(); }); }