示例#1
0
 //public HostEventController(HostEventsRepository eventsRepository, HostEventsHelper hostEventsHelper, UserManager<IdentityUser> userManager, GiftsRepository giftsRepository, GuestsRepository guestsRepository)
 public HostEventController(HostEventsRepository eventsRepository, RoleManager <IdentityRole> roleManager, UserManager <IdentityUser> userManager, GiftsRepository giftsRepository, GuestsRepository guestsRepository)
 {
     _hostEventsRepository = eventsRepository;
     //_hostEventsHelper = hostEventsHelper;
     _userManager      = userManager;
     _giftsRepository  = giftsRepository;
     _guestsRepository = guestsRepository;
     _roleManager      = roleManager;
 }
示例#2
0
 public HostEventsHelper(AppDbContext appDbContext, HostEventsRepository hostEventsRepository)
 {
     _appDbContext         = appDbContext;
     _hostEventsRepository = hostEventsRepository;
 }