private void getTokenUser() { TokenMapper tokenMappers = new TokenMapper(); this.TOKEN = tokenMappers.FindByUserID(this.IDUSER); }
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); }