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