Пример #1
0
 private void getTokenUser()
 {
     TokenMapper tokenMappers = new TokenMapper();
     this.TOKEN = tokenMappers.FindByUserID(this.IDUSER);
 }
Пример #2
0
 public void InsertToUsers()
 {
     User user = new User(vkClient.GetId(URL), vkClient.GetName(URL).ElementAt(0),
                          vkClient.GetName(URL).ElementAt(1));
     UserMapper userMapper = new UserMapper();
     TokenMapper tokenMapper = new TokenMapper();
     userMapper.Insert(user);
     tokenMapper.Insert(this.user);
 }