protected void Application_Start()
        {
            using (EnjoyGameContext db = new EnjoyGameContext())
            {
                db.Database.CreateIfNotExists();
            }
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            //EnjoyGameContext ent = new EnjoyGameContext();
            //RoleStore<ApplicationRole> RoleStore = new RoleStore<ApplicationRole>(ent);
            //RoleManager<ApplicationRole> roleManager = new RoleManager<ApplicationRole>(RoleStore);

            //if (!roleManager.RoleExists("Admin"))
            //{
            //    ApplicationRole adminRole = new ApplicationRole("Admin", "Sistem Yöneticisi");
            //    roleManager.Create(adminRole);
            //}
            //if (!roleManager.RoleExists("User"))
            //{
            //    ApplicationRole userRole = new ApplicationRole("User", "Kullanıcı");
            //    roleManager.Create(userRole);
            //}
        }
        public ActionResult NewgameCreate()
        {
            EnjoyGameContext  ent  = new EnjoyGameContext();
            Repository <Urun> repo = new Repository <Urun>(ent);

            return(PartialView());
        }
        public AccountController()
        {
            EnjoyGameContext            ent       = new EnjoyGameContext();
            UserStore <ApplicationUser> userStore = new UserStore <ApplicationUser>(ent);

            UserManager = new UserManager <ApplicationUser>(userStore);

            RoleStore <ApplicationRole> roleStore = new RoleStore <ApplicationRole>(ent);

            RoleManager = new RoleManager <ApplicationRole>(roleStore);
        }