예제 #1
0
        ///////////////////////////////////////////////////////////////////////////

        static void Main(string[] args)
        {
            string message;

            #region  Create Users
            User user = new User();
            user.UserId    = 1;
            user.Login     = "******";
            user.Password  = "******";
            user.DoB       = new DateTime(1900, 01, 5);
            user.IIN       = "110890302518";
            user.LastName  = "Admin";
            user.FirstName = "Admin";

            serviceUser.CreateUser(user, out message);

            MainMenu();
        }
예제 #2
0
        public void Create()
        {
            System.Console.WriteLine("Введите логин: ");
            string login = System.Console.ReadLine();

            System.Console.WriteLine("Введите пароль: ");
            string password = System.Console.ReadLine();

            System.Console.WriteLine("Введите доступ: ");
            string access = System.Console.ReadLine();

            System.Console.WriteLine("Введите проект: ");
            string project = System.Console.ReadLine();

            ServiceUser su = new ServiceUser();

            su.CreateUser(login, password, access, project);
        }