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

            userShowRep = new UserShowRepository(context);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initialize dbcontext and Repository
        /// </summary>
        public ProfileController()
        {
            ApplicationDbContext context = new ApplicationDbContext();

            userShowRep = new UserShowRepository(context);
        }