Example #1
0
        /// <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);
        }
Example #2
0
        /// <summary>
        /// Initialize dbcontext and usershow repository
        /// </summary>
        public CalendarController()
        {
            ApplicationDbContext context = new ApplicationDbContext();

            userShowRep = new UserShowRepository(context);
        }
Example #3
0
        /// <summary>
        /// Initialize dbcontext and Repository
        /// </summary>
        public ProfileController()
        {
            ApplicationDbContext context = new ApplicationDbContext();

            userShowRep = new UserShowRepository(context);
        }