Ejemplo n.º 1
0
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            System.Data.Entity.Database.SetInitializer(new FlyingSnow.Database.DatabaseInitializer());

            RoleActions roleAction = new RoleActions();
            roleAction.AddUserAndRole();
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     RoleActions roleAciton = new RoleActions();
     Models.ViewUser viewUser = roleAciton.GetUserById(HttpContext.Current.User.Identity.GetUserId());
     UserInfo = JsonConvert.SerializeObject(viewUser);
 }