示例#1
0
 public _CateringsController(IMapper mapper, ILunchRepository catering, ICalendarRepository calendar, IShoppingCartRepository cart)
 {
     _cart     = cart;
     _calendar = calendar;
     _mapper   = mapper;
     _catering = catering;
 }
示例#2
0
 public LunchController(IShoppingCartRepository cartRepository, AppDbContext appDbContext, IMapper mapper, ILunchRepository lunchRepository)
 {
     _cartRepository  = cartRepository;
     _appDbContext    = appDbContext;
     _mapper          = mapper;
     _lunchRepository = lunchRepository;
 }
 public _CartCustomCateringController(IShoppingCartRepository cart, IMapper mapper, ILunchRepository catering, ICatalogRepository catalog)
 {
     _cart     = cart;
     _mapper   = mapper;
     _catering = catering;
     _catalog  = catalog;
 }
 public LunchDataController(IShoppingCartRepository cartRepository, SignInManager <ApplicationUser> signIn, UserManager <ApplicationUser> userMana, IMapper mapper, ILunchRepository lunchRepository, ICatalogRepository catalogRepository)
 {
     _cartRepository    = cartRepository;
     _userManager       = userMana;
     _signIn            = signIn;
     _mapper            = mapper;
     _lunchRepository   = lunchRepository;
     _catalogRepository = catalogRepository;
 }
示例#5
0
 public OrderRepository(IHostingEnvironment env, ILunchRepository lunchRep, UserManager <ApplicationUser> userManager, IHttpContextAccessor contextAccessor, IEmailRepository emailRepository, ISmsRepository smsRepository, AppDbContext appDbContext, IMercadoPago mp, ICalendarRepository calendarRepository, IShoppingCartRepository shoppingCartRepository, IMapper mapper)
 {
     _env             = env;
     _lunchRep        = lunchRep;
     host             = "http://" + contextAccessor.HttpContext?.Request.Host.ToString();
     _userManager     = userManager;
     _emailRepository = emailRepository;
     _smsRepository   = smsRepository;
     _mapper          = mapper;
     _mp                 = mp;
     _appDbContext       = appDbContext;
     _cartRepository     = shoppingCartRepository;
     _calendarRepository = calendarRepository;
 }
 public ShoppingCartController(ILunchRepository lunchRep, ICatalogRepository catalogRepository, IHttpContextAccessor contextAccessor, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IConfiguration config, ICalendarRepository calendarRepository, IPieRepository pieRepository, IShoppingCartRepository shoppingCart, IMercadoPago mp)
 {
     _lunchRep           = lunchRep;
     _contextAccessor    = contextAccessor;
     _userManager        = userManager;
     _signInManager      = signInManager;
     _config             = config;
     _pieRepository      = pieRepository;
     _catalogRepository  = catalogRepository;
     _cartRepository     = shoppingCart;
     _bookingId          = shoppingCart.GetSessionCartId();
     _friendlyBookingId  = _bookingId.Ending(6);
     _calendarRepository = calendarRepository;
     _mp = mp;
     _minimumArsForOrderDelivery = _config.GetValue <int>("MinimumArsForOrderDelivery");
     _maxArsForReservation       = _config.GetValue <int>("MaxArsForReservation");
     _minimumCharge  = _config.GetValue <int>("LowestDeliveryCost");
     _costByBlock    = _config.GetValue <int>("DeliveryCostByBlock");
     _deliveryRadius = _config.GetValue <int>("DeliveryRadius");
 }
 public _CartCateringsController(IShoppingCartRepository shoppingCart, ILunchRepository catering)
 {
     _cart     = shoppingCart;
     _catering = catering;
 }
示例#8
0
 public AccountController()
 {
     LunchRepository = new LunchRepository();
 }
 public LunchesController(ILunchRepository repositoryLunch)
 {
     this.repository = repositoryLunch;
 }
示例#10
0
 public LunchService(ILunchRepository lunchRepository, IObjectLogger logger)
 {
     _lunchRepository = lunchRepository;
     _logger          = logger;
 }