Esempio n. 1
0
 public InteractionHistoryService(IRepositoryAsync <InteractionHistory> repository,
                                  EventService eventService,
                                  EventTypeService eventTypeService,
                                  EventPurposeService eventPurposeService,
                                  CustomerService customerService,
                                  IRepositoryAsync <ApplicationUser> userRepository) : base(repository)
 {
     _eventService        = eventService;
     _customerService     = customerService;
     _eventTypeService    = eventTypeService;
     _eventPurposeService = eventPurposeService;
     _userRepository      = userRepository;
     _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));
 }