Exemplo n.º 1
0
        /// <summary>
        /// Assigning a session key to a user.
        /// </summary>
        /// <param name="informations"></param>
        public void AssignSessionKey(List <string> informations)
        {
            CustomUser user = new CustomUser
            {
                Username = informations[0],
                Password = informations[1],
                Email    = informations[2],
                Wallet   = Double.Parse(informations[3])
            };

            Console.WriteLine("Assign a session key to a user");
            ctr_user.AssignSessionKey(user);
        }
Exemplo n.º 2
0
 public void CreateSession(CustomUser user)
 {
     ctrl.AssignSessionKey(user);
 }