Пример #1
0
 public DataService(IUserRepository userApiRepository, IMenuRepository menuApiRepository, IDishRepository dishApiRepository,
                    ICustomerRepository customerApiRepository, IDelivererRepository delivererApiRepository, IEventRepository eventApiRepository,
                    IIngredientRepository ingredientApiRepository)
 {
     _userRepo       = userApiRepository;
     _menuRepo       = menuApiRepository;
     _dishRepo       = dishApiRepository;
     _customerRepo   = customerApiRepository;
     _delivererRepo  = delivererApiRepository;
     _eventRepo      = eventApiRepository;
     _ingredientRepo = ingredientApiRepository;
 }
Пример #2
0
 public DelivererService(IDelivererRepository deliveryRepository, IMapper mapper)
 {
     this.mapper             = mapper;
     this.deliveryRepository = deliveryRepository;
 }