예제 #1
0
 private void UserChangedPass()
 {
     using (UserEventsListContext db = new UserEventsListContext())
     {
         UserEventsList UserEvent = new UserEventsList {
             User_login = LoginStroke, Event_id = "2"
         };
         db.UserEvents.Add(UserEvent);
         db.SaveChanges();
     }
 }
예제 #2
0
 public void UserExit()
 {
     using (UserEventsListContext db = new UserEventsListContext())
     {
         UserEventsList UserEvent = new UserEventsList {
             User_login = LoginStroke, Event_id = "1"
         };
         db.UserEvents.Add(UserEvent);
         db.SaveChanges();
     }
 }