/// <summary> /// initialize dbcontext, usermanager and repositories /// </summary> public ShowController() { ApplicationDbContext context = new ApplicationDbContext(); UserManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(context)); showRep = new ShowRepository(context); userShowRep = new UserShowRepository(context); }
/// <summary> /// Initialize dbcontext and usershow repository /// </summary> public CalendarController() { ApplicationDbContext context = new ApplicationDbContext(); userShowRep = new UserShowRepository(context); }
/// <summary> /// Initialize dbcontext and Repository /// </summary> public ProfileController() { ApplicationDbContext context = new ApplicationDbContext(); userShowRep = new UserShowRepository(context); }