Esempio n. 1
0
 public DetailEventService(IRepositoryAsync <DetailEvent> repository,
                           EventService eventService,
                           CustomerService customerService,
                           ProductTypeService productTypeService,
                           InteractionHistoryService interactionHistoryService,
                           IRepositoryAsync <ApplicationUser> userRepository) : base(repository)
 {
     _eventService              = eventService;
     _userRepository            = userRepository;
     _productTypeService        = productTypeService;
     _interactionHistoryService = interactionHistoryService;
     _repository = repository;
     db          = new DataContext();
     userManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(db));
 }
Esempio n. 2
0
 public EventService(IRepositoryAsync <Event> repository,
                     TagService tagService,
                     EventTypeService eventTypeService,
                     EventPurposeService eventPurposeService,
                     CustomerService customerService,
                     ProductTypeService productTypeService,
                     IRepositoryAsync <ApplicationUser> userRepository) : base(repository)
 {
     _tagService          = tagService;
     _customerService     = customerService;
     _eventTypeService    = eventTypeService;
     _eventPurposeService = eventPurposeService;
     _productTypeService  = productTypeService;
     _repository          = repository;
     _userRepository      = userRepository;
     db          = new DataContext();
     userManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(db));
 }